conditionally load tmux zsh plugins

This commit is contained in:
KemoNine 2022-05-19 23:04:29 -04:00
parent d2b847c5ab
commit 66d2daa0d7

10
zshrc
View file

@ -14,7 +14,9 @@ zplug "romkatv/powerlevel10k", as:theme, depth:1
zplug "popstas/zsh-command-time" zplug "popstas/zsh-command-time"
zplug "zsh-users/zsh-syntax-highlighting", defer:2 zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "ytakahashi/igit" zplug "ytakahashi/igit"
zplug "mbenford/zsh-tmux-auto-title" if [[ -n "${TMUX}" ]]; then
zplug "mbenford/zsh-tmux-auto-title"
fi
zplug "MichaelAquilina/zsh-you-should-use" zplug "MichaelAquilina/zsh-you-should-use"
zplug "junegunn/fzf", from:github, as:command, rename-to:fzf, hook-build:"./install --all" zplug "junegunn/fzf", from:github, as:command, rename-to:fzf, hook-build:"./install --all"
@ -58,8 +60,10 @@ setopt share_history
# zsh plugin options # zsh plugin options
ZSH_COMMAND_TIME_MIN_SECONDS=10 ZSH_COMMAND_TIME_MIN_SECONDS=10
ZSH_TMUX_AUTO_TITLE_SHORT=true if [[ -n "${TMUX}" ]]; then
ZSH_TMUX_AUTO_TITLE_IDLE_TEXT="%last" ZSH_TMUX_AUTO_TITLE_SHORT=true
ZSH_TMUX_AUTO_TITLE_IDLE_TEXT="%last"
fi
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'exa -1 --color=always $realpath' zstyle ':fzf-tab:complete:cd:*' fzf-preview 'exa -1 --color=always $realpath'