1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 18:38:00 +00:00

[zprezto] Add fzf-tab

This commit is contained in:
Daniel Carrillo 2022-04-09 18:14:39 +02:00
parent 555b911467
commit ac2a761fae
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
2 changed files with 17 additions and 1 deletions

View File

@ -36,7 +36,8 @@ zstyle ':prezto:load' pmodule \
'syntax-highlighting' \
'python' \
'git' \
'aws'
'aws' \
'fzf-tab'
#
# Autosuggestions
@ -197,3 +198,16 @@ zstyle ':prezto:module:terminal:tab-title' format '%m: %s'
zstyle ':prezto:module:aws' output 'table'
zstyle ':prezto:module:aws' profile 'default'
zstyle ':prezto:module:aws' show_region 'true'
#
# fzf-tab
#
# disable sort when completing `git checkout`
zstyle ':completion:*:git-checkout:*' sort false
# set descriptions format to enable group support
zstyle ':completion:*:descriptions' format '[%d]'
# set list-colors to enable filename colorizing
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
# switch group using `,` and `.`
zstyle ':fzf-tab:*' switch-group ',' '.'

2
.zshrc
View File

@ -101,6 +101,8 @@ kexec () {
[ -n "$cid" ] && kubectl exec -ti "$cid" -- "${cmd[@]}"
}
## fzf
export FZF_DEFAULT_COMMAND="fd --type f --follow -I"
export FZF_DEFAULT_OPTS="-m --reverse \
--color 'info:#00AAFF,prompt:#FFFFFF,pointer:#00AAFF,hl:#1AE51A,hl+:#1AE51A' \