conditionally load tmux zsh plugins
This commit is contained in:
parent
d2b847c5ab
commit
66d2daa0d7
10
zshrc
10
zshrc
|
@ -14,7 +14,9 @@ zplug "romkatv/powerlevel10k", as:theme, depth:1
|
|||
zplug "popstas/zsh-command-time"
|
||||
zplug "zsh-users/zsh-syntax-highlighting", defer:2
|
||||
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 "junegunn/fzf", from:github, as:command, rename-to:fzf, hook-build:"./install --all"
|
||||
|
@ -58,8 +60,10 @@ setopt share_history
|
|||
|
||||
# zsh plugin options
|
||||
ZSH_COMMAND_TIME_MIN_SECONDS=10
|
||||
ZSH_TMUX_AUTO_TITLE_SHORT=true
|
||||
ZSH_TMUX_AUTO_TITLE_IDLE_TEXT="%last"
|
||||
if [[ -n "${TMUX}" ]]; then
|
||||
ZSH_TMUX_AUTO_TITLE_SHORT=true
|
||||
ZSH_TMUX_AUTO_TITLE_IDLE_TEXT="%last"
|
||||
fi
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'exa -1 --color=always $realpath'
|
||||
|
||||
|
|
Loading…
Reference in a new issue