mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 22:07:59 +00:00
[zprezto] Add fzf-tab
This commit is contained in:
parent
555b911467
commit
ac2a761fae
16
.zpreztorc
16
.zpreztorc
@ -36,7 +36,8 @@ zstyle ':prezto:load' pmodule \
|
|||||||
'syntax-highlighting' \
|
'syntax-highlighting' \
|
||||||
'python' \
|
'python' \
|
||||||
'git' \
|
'git' \
|
||||||
'aws'
|
'aws' \
|
||||||
|
'fzf-tab'
|
||||||
|
|
||||||
#
|
#
|
||||||
# Autosuggestions
|
# Autosuggestions
|
||||||
@ -197,3 +198,16 @@ zstyle ':prezto:module:terminal:tab-title' format '%m: %s'
|
|||||||
zstyle ':prezto:module:aws' output 'table'
|
zstyle ':prezto:module:aws' output 'table'
|
||||||
zstyle ':prezto:module:aws' profile 'default'
|
zstyle ':prezto:module:aws' profile 'default'
|
||||||
zstyle ':prezto:module:aws' show_region 'true'
|
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
2
.zshrc
@ -101,6 +101,8 @@ kexec () {
|
|||||||
[ -n "$cid" ] && kubectl exec -ti "$cid" -- "${cmd[@]}"
|
[ -n "$cid" ] && kubectl exec -ti "$cid" -- "${cmd[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## fzf
|
||||||
|
|
||||||
export FZF_DEFAULT_COMMAND="fd --type f --follow -I"
|
export FZF_DEFAULT_COMMAND="fd --type f --follow -I"
|
||||||
export FZF_DEFAULT_OPTS="-m --reverse \
|
export FZF_DEFAULT_OPTS="-m --reverse \
|
||||||
--color 'info:#00AAFF,prompt:#FFFFFF,pointer:#00AAFF,hl:#1AE51A,hl+:#1AE51A' \
|
--color 'info:#00AAFF,prompt:#FFFFFF,pointer:#00AAFF,hl:#1AE51A,hl+:#1AE51A' \
|
||||||
|
Loading…
Reference in New Issue
Block a user