Skip to content

Commit

Permalink
Don't follow symlinks when finding files
Browse files Browse the repository at this point in the history
It seems symlinks often point to massive directories that you wouldn't want to be searching in anyway, so it's more trouble than it's worth to follow them. Resolves #66.
  • Loading branch information
PatrickF1 committed Dec 30, 2020
1 parent 34ac7e2 commit ac7308d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/__fzf_search_current_dir.fish
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function __fzf_search_current_dir --description "Search the current directory us
# See similar comment in __fzf_search_shell_variables.fish.
set --local --export SHELL (command --search fish)
set file_paths_selected (
fd --hidden --follow --color=always --exclude=.git 2>/dev/null |
fd --hidden --color=always --exclude=.git 2>/dev/null |
fzf --multi --ansi --preview='__fzf_preview_file {}'
)

Expand Down

0 comments on commit ac7308d

Please sign in to comment.