This commit is contained in:
David Chen 2019-12-01 16:59:13 -08:00
parent da782d73b9
commit 9dddf3424e

View file

@ -80,5 +80,12 @@ zle -N zle-keymap-select
KEYTIMEOUT=1
eval "$(pmy init)"
export PMY_TRIGGER_KEY='^t'
# fzf
export FZF_DEFAULT_OPTS='--bind ctrl-e:down,ctrl-u:up --preview "[[ $(file --mime {}) =~ binary ]] && echo {} is a binary file || (bat --style=numbers --color=always {} || highlight -O ansi -l {} || coderay {} || rougify {} || cat {}) 2> /dev/null | head -500"'
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""'
export FZF_COMPLETION_TRIGGER='\'
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh
#eval "$(pmy init)"
#export PMY_TRIGGER_KEY='^t'