conditionally load tmux zsh plugins
This commit is contained in:
parent
d2b847c5ab
commit
66d2daa0d7
4
zshrc
4
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"
|
||||
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
|
||||
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