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
|
# Update config once every 24 hours
|
||||||
cd $HOME/.zcustom
|
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
|
case "`uname`" in
|
||||||
Linux)
|
Linux)
|
||||||
STATARGS="-c %Z"
|
STATARGS="-c %Z"
|
||||||
alias df='df -x squashfs -x tmpfs -x devtmpfs'
|
alias df='df -x squashfs -x tmpfs -x devtmpfs'
|
||||||
alias mount='mount -t ext3,ext4,cifs,nfs,nfs4,zfs,vfat,btrfs'
|
alias mount='mount -t ext3,ext4,cifs,nfs,nfs4,zfs,vfat,btrfs'
|
||||||
alias open=xdg-open
|
alias open=xdg-open
|
||||||
|
plugins=(battery golang zsh-syntax-highlighting)
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
|
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
|
||||||
STATARGS="-f %m"
|
STATARGS="-f %m"
|
||||||
|
plugins=(battery brew golang lein macos zsh-syntax-highlighting)
|
||||||
;;
|
;;
|
||||||
OpenBSD)
|
OpenBSD)
|
||||||
STATARGS="-f %m"
|
STATARGS="-f %m"
|
||||||
|
plugins=(battery zsh-syntax-highlighting)
|
||||||
;;
|
;;
|
||||||
FreeBSD)
|
FreeBSD)
|
||||||
STATARGS="-f %m"
|
STATARGS="-f %m"
|
||||||
|
plugins=(battery zsh-syntax-highlighting)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Error! Unknown system `uname`"
|
echo "Error! Unknown system `uname`"
|
||||||
@@ -86,11 +94,6 @@ DISABLE_UPDATE_PROMPT="true"
|
|||||||
# much faster.
|
# much faster.
|
||||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
# 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
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
# Customize to your needs...
|
# Customize to your needs...
|
||||||
|
|||||||
Reference in New Issue
Block a user