]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Shorter find fzf command
authorSergey Matveev <stargrave@stargrave.org>
Sat, 6 Feb 2021 12:34:20 +0000 (15:34 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 6 Feb 2021 12:34:20 +0000 (15:34 +0300)
zsh/.zshrc

index 27a1bde2de5d70f12f08f26cb86c562eee96def7..cede543bcdc428b2619810e2c6b52bb67038f961 100644 (file)
@@ -217,10 +217,10 @@ export FZF_DEFAULT_OPTS="--color=16 --info=inline --preview='less -N -S {}'"
 
 _fzf_find() {
     find . \( -path "*/\.git" -o -fstype devfs -o -fstype procfs \) -prune \
-        -o -type d -print $@ 2>/dev/null | cut -b3-
+        -o \( -type d $@ \) -print 2>/dev/null | cut -b3-
 }
 
-export FZF_CTRL_T_COMMAND="_fzf_find -o -type f -print -o -type l -print"
+export FZF_CTRL_T_COMMAND="_fzf_find -o -type f -o -type l"
 export FZF_ALT_C_COMMAND=_fzf_find
 
 . ~/work/fzf/shell/key-bindings.zsh