Skip to content

Instantly share code, notes, and snippets.

@BigAN
Created May 23, 2016 03:44
Show Gist options
  • Save BigAN/aa310cbafacfd358a275765af61e61de to your computer and use it in GitHub Desktop.
Save BigAN/aa310cbafacfd358a275765af61e61de to your computer and use it in GitHub Desktop.
zshrc配置
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git autojump)
# User configuration
export PATH="/Users/dongjian/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
# export MANPATH="/usr/local/man:$MANPATH"
source $ZSH/oh-my-zsh.sh
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias cls='clear'
alias ll='ls -l'
alias la='ls -a'
alias vi='vim'
alias javac="javac -J-Dfile.encoding=utf8"
alias grep="grep --color=auto"
alias -s html=mate # 在命令行直接输入后缀为 html 的文件名,会在 TextMate 中打开
alias -s rb=mate # 在命令行直接输入 ruby 文件,会在 TextMate 中打开
alias -s py=vi # 在命令行直接输入 python 文件,会用 vim 中打开,以下类似
alias -s js=vi
alias -s c=vi
alias -s java=vi
alias -s txt=vi
alias -s gz='tar -xzvf'
alias -s tgz='tar -xzvf'
alias -s zip='unzip'
alias -s bz2='tar -xjvf'
export PATH=$PATH:/Users/dongjian/work/packages/spark13/bin
export PYTHONPATH=$PYTHONPATH:/Users/dongjian/work/meituan
echo $PYTHONPATH
export PYTHONPATH=$PYTHONPATH:/Users/dongjian/work/packages/spark13/python
echo $PYTHONPATH
export PYTHONPATH=$PYTHONPATH:/Users/dongjian/work
eustom plugins may be added to ~/.oh-my-zsh/custom/plugins/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment