summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-10-02 11:02:19 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-10-02 11:02:19 +0900
commit7c7a30c472463e0115adcf8bc2a792b48c03bf08 (patch)
tree9f4e63057538fff39ad3df382621f465232b5731
parent6a38d07a4cb49d60d4782656fdb861a8ddbf3ecb (diff)
parentea271cd4e2b0cb3f6e8a959f54401941ac6f1d87 (diff)
downloadfzf-7c7a30c472463e0115adcf8bc2a792b48c03bf08.tar.gz
Merge pull request #364 from halostatue/use-zsh-regex-module
Remove dependency on zsh/pcre module
-rwxr-xr-xinstall6
-rw-r--r--shell/key-bindings.zsh2
2 files changed, 4 insertions, 4 deletions
diff --git a/install b/install
index f5890767..e98f920a 100755
--- a/install
+++ b/install
@@ -185,7 +185,7 @@ for shell in bash zsh; do
echo -n "Generate ~/.fzf.$shell ... "
src=~/.fzf.${shell}
- fzf_completion="[[ \$- =~ i ]] && source \"$fzf_base/shell/completion.${shell}\" 2> /dev/null"
+ fzf_completion="[[ \$- == *i* ]] && source \"$fzf_base/shell/completion.${shell}\" 2> /dev/null"
if [ $auto_completion -ne 0 ]; then
fzf_completion="# $fzf_completion"
fi
@@ -198,13 +198,13 @@ for shell in bash zsh; do
cat > $src << EOF
# Setup fzf
# ---------
-if [[ ! "\$PATH" =~ "$fzf_base/bin" ]]; then
+if [[ ! "\$PATH" == *$fzf_base/bin* ]]; then
export PATH="\$PATH:$fzf_base/bin"
fi
# Man path
# --------
-if [[ ! "\$MANPATH" =~ "$fzf_base/man" && -d "$fzf_base/man" ]]; then
+if [[ ! "\$MANPATH" == *$fzf_base/man* && -d "$fzf_base/man" ]]; then
export MANPATH="\$MANPATH:$fzf_base/man"
fi
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh
index 735aa501..27810d32 100644
--- a/shell/key-bindings.zsh
+++ b/shell/key-bindings.zsh
@@ -1,6 +1,6 @@
# Key bindings
# ------------
-if [[ $- =~ i ]]; then
+if [[ $- == *i* ]]; then
# CTRL-T - Paste the selected file path(s) into the command line
__fsel() {