diff options
Diffstat (limited to 'shell/key-bindings.fish')
-rw-r--r-- | shell/key-bindings.fish | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index b520d8b8..dd75fecf 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -16,10 +16,10 @@ function fzf_key_bindings # "-path \$dir'*/\\.*'" matches hidden files/folders inside $dir but not # $dir itself, even if hidden. set -q FZF_CTRL_T_COMMAND; or set -l FZF_CTRL_T_COMMAND " - command find -L \$dir \\( -path \$dir'*/\\.*' -o -fstype 'devfs' -o -fstype 'devtmpfs' \\) -prune \ + command find -L \$dir -mindepth 1 \\( -path \$dir'*/\\.*' -o -fstype 'devfs' -o -fstype 'devtmpfs' \\) -prune \ -o -type f -print \ -o -type d -print \ - -o -type l -print 2> /dev/null | sed '1d; s#^\./##'" + -o -type l -print 2> /dev/null | sed 's#^\./##'" eval "$FZF_CTRL_T_COMMAND | "(__fzfcmd)" -m $FZF_CTRL_T_OPTS" | while read -l r; set result $result $r; end if [ -z "$result" ] |