From: Sergey Matveev Date: Sat, 6 Feb 2021 12:34:20 +0000 (+0300) Subject: Shorter find fzf command X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=897d57386b7c3ac1233f40f3a182a8fb547c9201 Shorter find fzf command --- diff --git a/zsh/.zshrc b/zsh/.zshrc index 27a1bde..cede543 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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