Merge pull request #95 from Neki/topic/resolve_symlinks

Follow symlinks when using bash autocompletion.
This commit is contained in:
Junegunn Choi 2014-08-30 22:33:21 +09:00
commit b241409e4b

View File

@ -70,7 +70,7 @@ _fzf_path_completion() {
leftover=${leftover/#\/}
[ "$dir" = './' ] && dir=''
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"
done)
matches=${matches% }