diff options
| author | Benoît Faucon <faucon.benoit@cegetel.net> | 2014-08-30 14:56:30 +0200 |
|---|---|---|
| committer | Benoît Faucon <faucon.benoit@cegetel.net> | 2014-08-30 14:56:30 +0200 |
| commit | 11967be017a2215573bb6e23db168c91bf03cb12 (patch) | |
| tree | 1fa3b340c4b2f9e1cfaf1038705b77dea2862598 /fzf-completion.bash | |
| parent | 6ee811ea036c427f541a4cde793bda507ae86cb7 (diff) | |
| download | fzf-11967be017a2215573bb6e23db168c91bf03cb12.tar.gz | |
Follow symlinks when using bash autocompletion.
Diffstat (limited to 'fzf-completion.bash')
| -rw-r--r-- | fzf-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fzf-completion.bash b/fzf-completion.bash index 85c70087..21130baa 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% } |
