X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=zsh%2F.zshrc;h=b1baea7bc1d29331c45195ce068a9f89d1cb6ce0;hb=819d5b63962cb016bcb5b0bc58bf8bdc00aa147d;hp=99f9b0841063581d820143e65e65f86e60bf742f;hpb=a95a68295fbc3c828e74561249b70a3fd01379de;p=dotfiles.git diff --git a/zsh/.zshrc b/zsh/.zshrc index 99f9b08..b1baea7 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -208,3 +208,19 @@ ZSH_HIGHLIGHT_STYLES[path_pathseparator]="fg=white,bold,underline" . ~/work/zsh-autosuggestions/zsh-autosuggestions.zsh 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 +# }}}