diff --git a/shell/completion.bash b/shell/completion.bash index 360a646..a51713c 100644 --- a/shell/completion.bash +++ b/shell/completion.bash @@ -12,7 +12,7 @@ if [[ $- =~ i ]]; then # To use custom commands instead of find, override _fzf_compgen_{path,dir} -if ! declare -f _fzf_compgen_path > /dev/null; then +if ! declare -F _fzf_compgen_path > /dev/null; then _fzf_compgen_path() { echo "$1" command find -L "$1" \ @@ -21,7 +21,7 @@ if ! declare -f _fzf_compgen_path > /dev/null; then } fi -if ! declare -f _fzf_compgen_dir > /dev/null; then +if ! declare -F _fzf_compgen_dir > /dev/null; then _fzf_compgen_dir() { command find -L "$1" \ -name .git -prune -o -name .hg -prune -o -name .svn -prune -o -type d \