mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 14:44:57 +08:00
fzf
This commit is contained in:
parent
da782d73b9
commit
9dddf3424e
1 changed files with 9 additions and 2 deletions
11
zsh/zshrc
11
zsh/zshrc
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue