diff --git a/.zshrc b/.zshrc index 2cd9d3e..56f02c0 100644 --- a/.zshrc +++ b/.zshrc @@ -4,8 +4,6 @@ if [[ -f "$oh_my_zsh/oh-my-zsh.sh" ]]; then export ZSH="$oh_my_zsh" export DISABLE_AUTO_UPDATE=true - if [[ ! -v "ZSH_TMUX_AUTOSTART" ]]; then export ZSH_TMUX_AUTOSTART=true; fi - if (( !${+ZSH_THEME} )); then export ZSH_THEME="simple" fi @@ -13,9 +11,14 @@ if [[ -f "$oh_my_zsh/oh-my-zsh.sh" ]]; then export plugins=( fzf git - tmux ) + if [[ $(command -v tmux) ]]; then + if [[ ! -v "ZSH_TMUX_AUTOSTART" ]]; then export ZSH_TMUX_AUTOSTART=true; fi + plugins+=(tmux) + fi + + if [[ $(command -v systemctl) ]]; then plugins+=(systemd) fi