Skip to content

Commit

Permalink
Use ls -A to hide . and .. when previewing directories (PatrickF1#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng authored Dec 10, 2020
1 parent 20b3c51 commit 9a2ead5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/__fzf_preview_file.fish
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function __fzf_preview_file --argument-names file_path --description "Prints a p
bat --style=numbers --color=always "$file_path"
else if test -d "$file_path" # directory
set --local CLICOLOR_FORCE true
ls -a "$file_path"
ls -A "$file_path" # list hidden files as well, except for . and ..
else if test -L "$file_path" # symlink
# notify user and recurse on the target of the symlink, which can be any of these file types
set -l target_path (realpath $file_path)
Expand Down

0 comments on commit 9a2ead5

Please sign in to comment.