mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-24 20:41:31 +01:00
zsh: add FZF_CTRL_T_COMMAND
This commit is contained in:
parent
70aec3b2b6
commit
c5532fea31
|
@ -18,6 +18,13 @@ antibody bundle < "$DOTFILES/antibody_plugins.txt"
|
||||||
source $DOTFILES/completion_style.zsh
|
source $DOTFILES/completion_style.zsh
|
||||||
source $DOTFILES/extras/fzf-tab-config.zsh
|
source $DOTFILES/extras/fzf-tab-config.zsh
|
||||||
|
|
||||||
|
if command -v fd >/dev/null; then
|
||||||
|
export FZF_CTRL_T_COMMAND='fd'
|
||||||
|
else
|
||||||
|
export FZF_CTRL_T_COMMAND='find'
|
||||||
|
fi
|
||||||
|
export FZF_CTRL_T_OPTS=" --preview-window=right,60% --preview \"bash -c 'if [[ -d \"{}\" ]]; then tree -C \"{}\"; else bat --style=plain --color=always \"{}\"; fi'\" --bind 'ctrl-/:change-preview-window(right,70%|down,40%,border-horizontal|hidden|right)'"
|
||||||
|
|
||||||
if [[ "$(command -v systemctl)" ]]; then
|
if [[ "$(command -v systemctl)" ]]; then
|
||||||
antibody bundle robbyrussell/oh-my-zsh path:plugins/systemd
|
antibody bundle robbyrussell/oh-my-zsh path:plugins/systemd
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user