Mac OS vs Linux compatibility in zsh
This commit is contained in:
parent
511f1f33c3
commit
736e45ce03
12
home/.zshrc
12
home/.zshrc
|
@ -15,12 +15,17 @@ export SAVEHIST=$HISTSIZE
|
||||||
setopt hist_ignore_all_dups
|
setopt hist_ignore_all_dups
|
||||||
setopt hist_ignore_space
|
setopt hist_ignore_space
|
||||||
setopt inc_append_history
|
setopt inc_append_history
|
||||||
|
setopt nobeep
|
||||||
|
|
||||||
# 256 colors
|
# 256 colors
|
||||||
[[ "$TERM" == "xterm" ]] && export TERM=xterm-256color
|
[[ "$TERM" == "xterm" ]] && export TERM=xterm-256color
|
||||||
|
|
||||||
# Normalize the PATH
|
# Normalize the PATH
|
||||||
export PATH="/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:${HOME}/bin:${HOME}/go/bin:${HOME}/android/sdk/platform-tools"
|
CORE_PATH="/usr/sbin:/sbin:/usr/bin:/bin"
|
||||||
|
USR_PATH="/usr/local/sbin:/usr/local/bin:${HOME}/bin:${HOME}/go/bin:${HOME}/android/sdk/platform-tools"
|
||||||
|
if [[ `uname` == "Linux" ]] then export PATH="${CORE_PATH}:${USR_PATH}"
|
||||||
|
else export PATH="${USR_PATH}:${CORE_PATH}"
|
||||||
|
fi
|
||||||
export EDITOR="/usr/bin/vim"
|
export EDITOR="/usr/bin/vim"
|
||||||
|
|
||||||
# Virtualenv
|
# Virtualenv
|
||||||
|
@ -89,9 +94,12 @@ precmd() {
|
||||||
|
|
||||||
alias vi="vim"
|
alias vi="vim"
|
||||||
alias grep="grep --exclude=min.js --color=auto"
|
alias grep="grep --exclude=min.js --color=auto"
|
||||||
alias ls="ls --color=auto"
|
|
||||||
alias ll="ls -l"
|
alias ll="ls -l"
|
||||||
|
|
||||||
|
if [[ `uname` == 'Linux' ]] then
|
||||||
|
alias ls="ls --color=auto"
|
||||||
|
fi
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# zsh plugins #
|
# zsh plugins #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
Loading…
Reference in New Issue
Block a user