Make plugins OS-specific
This commit is contained in:
13
.zshrc
13
.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...
|
||||
|
||||
Reference in New Issue
Block a user