Follow symlinks when using bash autocompletion.

This commit is contained in:
Benoît Faucon 2014-08-30 14:56:30 +02:00
parent 6ee811ea03
commit 11967be017

View File

@ -70,7 +70,7 @@ _fzf_path_completion() {
leftover=${leftover/#\/} leftover=${leftover/#\/}
[ "$dir" = './' ] && dir='' [ "$dir" = './' ] && dir=''
tput sc tput sc
matches=$(find "$dir"* $1 2> /dev/null | fzf $FZF_COMPLETION_OPTS $2 -q "$leftover" | while read item; do matches=$(find -L "$dir"* $1 2> /dev/null | fzf $FZF_COMPLETION_OPTS $2 -q "$leftover" | while read item; do
printf '%q ' "$item" printf '%q ' "$item"
done) done)
matches=${matches% } matches=${matches% }