From 11967be017a2215573bb6e23db168c91bf03cb12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Faucon?= Date: Sat, 30 Aug 2014 14:56:30 +0200 Subject: [PATCH] Follow symlinks when using bash autocompletion. --- fzf-completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fzf-completion.bash b/fzf-completion.bash index 85c7008..21130ba 100644 --- a/fzf-completion.bash +++ b/fzf-completion.bash @@ -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% }