summaryrefslogtreecommitdiff
path: root/shell/key-bindings.fish
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-02-19 01:33:13 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-02-19 01:33:13 +0900
commit11407bf65650ef5bd97453e16ab3424b90ef750e (patch)
tree93df809a7f86395aa27483712b03eab65e5d68d7 /shell/key-bindings.fish
parentc82fb3c9b907043a515dae7fdcc0e30b4c8b7cd1 (diff)
downloadfzf-11407bf65650ef5bd97453e16ab3424b90ef750e.tar.gz
Exclude sysfs in find commands
Diffstat (limited to 'shell/key-bindings.fish')
-rw-r--r--shell/key-bindings.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish
index 6b239ba0..c35dac7e 100644
--- a/shell/key-bindings.fish
+++ b/shell/key-bindings.fish
@@ -16,7 +16,7 @@ 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 -mindepth 1 \\( -path \$dir'*/\\.*' -o -fstype 'devfs' -o -fstype 'devtmpfs' \\) -prune \
+ command find -L \$dir -mindepth 1 \\( -path \$dir'*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' \\) -prune \
-o -type f -print \
-o -type d -print \
-o -type l -print 2> /dev/null | cut -b3-"
@@ -54,7 +54,7 @@ function fzf_key_bindings
function fzf-cd-widget -d "Change directory"
set -q FZF_ALT_C_COMMAND; or set -l FZF_ALT_C_COMMAND "
- command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'devfs' -o -fstype 'devtmpfs' \\) -prune \
+ command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' \\) -prune \
-o -type d -print 2> /dev/null | cut -b3-"
set -q FZF_TMUX_HEIGHT; or set FZF_TMUX_HEIGHT 40%
begin