mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-26 14:56:30 +00:00
[bash-completion] Remove -E option from sed
Old versions of sed does not have -E option
This commit is contained in:
parent
5390616694
commit
4103f5c3cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user