1
0
Fork 0

fix fzf hack

This commit is contained in:
Massaki Archambault 2019-04-04 17:54:07 -04:00
parent 943b189141
commit ee27de120c
1 changed files with 2 additions and 2 deletions

View File

@ -10,12 +10,12 @@ export FZF_TMUX_HEIGHT=90%
# attach some extra options to path and dir completion # attach some extra options to path and dir completion
eval "_$(declare -f _fzf_path_completion)" eval "_$(declare -f _fzf_path_completion)"
_fzf_path_completion() { _fzf_path_completion() {
FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS $FZF_CTRL_T_OPTS" __fzf_path_completion $@ FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS $FZF_CTRL_T_OPTS" __fzf_path_completion "$1" "$2"
} }
eval "_$(declare -f _fzf_dir_completion)" eval "_$(declare -f _fzf_dir_completion)"
_fzf_dir_completion() { _fzf_dir_completion() {
FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS $FZF_CTRL_T_OPTS" __fzf_dir_completion $@ FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS $FZF_CTRL_T_OPTS" __fzf_dir_completion "$1" "$2"
} }
# Remove duplicate when using Ctrl+R # Remove duplicate when using Ctrl+R