From fc5ff20836283fa08abeb4608d2ab20cbf6b89b8 Mon Sep 17 00:00:00 2001 From: Edward Dorrington Date: Wed, 16 Feb 2022 15:58:53 -0600 Subject: [PATCH] Make plugins OS-specific --- .zshrc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.zshrc b/.zshrc index 3abd295..42addb3 100644 --- a/.zshrc +++ b/.zshrc @@ -4,22 +4,30 @@ export ZSH_DISABLE_COMPFIX=true # Update config once every 24 hours cd $HOME/.zcustom +# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) +# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ +# Example format: plugins=(rails git textmate ruby lighthouse) + case "`uname`" in Linux) STATARGS="-c %Z" alias df='df -x squashfs -x tmpfs -x devtmpfs' alias mount='mount -t ext3,ext4,cifs,nfs,nfs4,zfs,vfat,btrfs' alias open=xdg-open + plugins=(battery golang zsh-syntax-highlighting) ;; Darwin) test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" STATARGS="-f %m" + plugins=(battery brew golang lein macos zsh-syntax-highlighting) ;; OpenBSD) STATARGS="-f %m" + plugins=(battery zsh-syntax-highlighting) ;; FreeBSD) STATARGS="-f %m" + plugins=(battery zsh-syntax-highlighting) ;; *) echo "Error! Unknown system `uname`" @@ -86,11 +94,6 @@ DISABLE_UPDATE_PROMPT="true" # much faster. # DISABLE_UNTRACKED_FILES_DIRTY="true" -# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) -# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ -# Example format: plugins=(rails git textmate ruby lighthouse) -plugins=(battery brew golang lein macos zsh-syntax-highlighting) - source $ZSH/oh-my-zsh.sh # Customize to your needs...