diff options
Diffstat (limited to 'fzf')
-rw-r--r-- | fzf/.config/zsh/.zshrc.d/90-fzf.zsh | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/fzf/.config/zsh/.zshrc.d/90-fzf.zsh b/fzf/.config/zsh/.zshrc.d/90-fzf.zsh index 50c5ec2..58e0454 100644 --- a/fzf/.config/zsh/.zshrc.d/90-fzf.zsh +++ b/fzf/.config/zsh/.zshrc.d/90-fzf.zsh @@ -1,18 +1,17 @@ #!/bin/zsh -# vim: ft=sh - -_fzf_compgen_path() { - fd --hidden --follow --exclude ".git" . "$1" -} - -_fzf_compgen_dir() { - fd --type d --hidden --follow --exclude ".git" . "$1" -} if [ -r "/usr/share/fzf/completion.zsh" ]; then source /usr/share/fzf/completion.zsh fi +if [ -r "/usr/share/fzf/key-bindings.zsh" ]; then + source /usr/share/fzf/key-bindings.zsh + for keymap in emacs vicmd viins; do + bindkey -rM $keymap '\ec' + bindkey -rM $keymap '^T' + done +fi + if [ -n "$BASE16_THEME" ] && [ -n "$BASE16_SHELL_ENABLE_VARS" ]; then export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --color=bg+:#$BASE16_COLOR_01_HEX,bg:#$BASE16_COLOR_00_HEX,spinner:#$BASE16_COLOR_0C_HEX,hl:#$BASE16_COLOR_0D_HEX |