config(zsh): move fzf
parent
0921b54aa4
commit
6d637b34e4
|
@ -50,6 +50,17 @@ export PATH=$PATH:$GOPATH/bin
|
|||
if command -v fzf &>/dev/null; then
|
||||
export FZF_COMPLETION_TRIGGER='~~'
|
||||
|
||||
# https://github.com/catppuccin/fzf
|
||||
# Remove bg for transparent terminal
|
||||
export FZF_DEFAULT_OPTS="\
|
||||
--ansi \
|
||||
--pointer='🔫' --prompt='🪓 ' \
|
||||
--color=bg+:#313244,spinner:#f5e0dc,hl:#f38ba8 \
|
||||
--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \
|
||||
--color=marker:#b4befe,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8 \
|
||||
--color=selected-bg:#45475a \
|
||||
--multi"
|
||||
|
||||
if command -v fd &>/dev/null; then
|
||||
_fzf_compgen_path() {
|
||||
fd --type file . "$1"
|
||||
|
@ -64,17 +75,6 @@ if command -v fzf &>/dev/null; then
|
|||
export FZF_ALT_C_COMMAND="fd --type directory --color=always"
|
||||
fi
|
||||
|
||||
# https://github.com/catppuccin/fzf
|
||||
# Remove bg for transparent terminal
|
||||
export FZF_DEFAULT_OPTS="\
|
||||
--ansi \
|
||||
--pointer='🔫' --prompt='🪓 ' \
|
||||
--color=bg+:#313244,spinner:#f5e0dc,hl:#f38ba8 \
|
||||
--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \
|
||||
--color=marker:#b4befe,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8 \
|
||||
--color=selected-bg:#45475a \
|
||||
--multi"
|
||||
|
||||
if command -v bat &>/dev/null; then
|
||||
export FZF_CTRL_T_OPTS="--preview 'bat --color=always --line-range=:500 {}'"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue