summaryrefslogtreecommitdiff
path: root/fzf-completion.bash
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2014-08-30 22:33:21 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2014-08-30 22:33:21 +0900
commitb241409e4befcfb2d40184217134c65bd5968991 (patch)
tree1fa3b340c4b2f9e1cfaf1038705b77dea2862598 /fzf-completion.bash
parent6ee811ea036c427f541a4cde793bda507ae86cb7 (diff)
parent11967be017a2215573bb6e23db168c91bf03cb12 (diff)
downloadfzf-b241409e4befcfb2d40184217134c65bd5968991.tar.gz
Merge pull request #95 from Neki/topic/resolve_symlinks
Follow symlinks when using bash autocompletion.
Diffstat (limited to 'fzf-completion.bash')
-rw-r--r--fzf-completion.bash2
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% }