summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2014-07-11 01:09:06 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2014-07-11 01:09:06 +0900
commit4103f5c3ccf3bcbdfcdb16ac28d2ea387616df3a (patch)
tree691a9d91c5472373fc63d81bbfb98d3c0550b8af
parent53906166941826de7f4453b19cc4751526284a4d (diff)
downloadfzf-4103f5c3ccf3bcbdfcdb16ac28d2ea387616df3a.tar.gz
[bash-completion] Remove -E option from sed
Old versions of sed does not have -E option
-rw-r--r--fzf-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/fzf-completion.bash b/fzf-completion.bash
index df9c883d..4762a866 100644
--- a/fzf-completion.bash
+++ b/fzf-completion.bash
@@ -159,7 +159,7 @@ if [ "$_fzf_completion_loaded" != '0.8.6' ]; then
# Really wish I could use associative array but OSX comes with bash 3.2 :(
eval $(complete | grep '\-F' | grep -v _fzf_ |
grep -E -w "$(echo $d_cmds $f_cmds $a_cmds | sed 's/ /|/g' | sed 's/+/\\+/g')" |
- sed -E 's/.*-F *([^ ]*).* ([^ ]*)$/export _fzf_orig_completion_\2=\1;/' |
+ sed 's/.*-F *\([^ ]*\).* \([^ ]*\)$/export _fzf_orig_completion_\2=\1;/' |
sed 's/[^a-z0-9_= ;]/_/g')
export _fzf_completion_loaded=0.8.6
fi