X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=blobdiff_plain;f=zsh%2F.zshrc;h=b1baea7bc1d29331c45195ce068a9f89d1cb6ce0;hp=e5f02abe87c2c2666e9ab84a04dc6b6b09c38874;hb=819d5b63962cb016bcb5b0bc58bf8bdc00aa147d;hpb=3d5975f24c8913da9d903b94c5beeacd2e9846e1 diff --git a/zsh/.zshrc b/zsh/.zshrc index e5f02ab..b1baea7 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -210,5 +210,17 @@ ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=cyan" # }}} # fzf {{{ +alias -g PE="| pe" + +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- +} + +export FZF_CTRL_T_COMMAND="_fzf_find -o -type f -print -o -type l -print" +export FZF_ALT_C_COMMAND=_fzf_find + . ~/work/fzf/shell/key-bindings.zsh # }}}