Skip to content

Instantly share code, notes, and snippets.

@tansengming
Last active June 7, 2016 19:05
Show Gist options
  • Save tansengming/3818004 to your computer and use it in GitHub Desktop.
Save tansengming/3818004 to your computer and use it in GitHub Desktop.
.zshrc
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="gallois"
setopt HIST_FIND_NO_DUPS
setopt histignorealldups
alias x='exit'
alias desk='cd ~/Desktop'
alias rm='grm -v'
alias rmdir='grmdir -v'
alias cp='cp -vi'
alias ln='gln -v'
alias mkdir='gmkdir -v'
alias mkdev='rm -f ~/dev && ln -vs $PWD ~/dev'
alias be='bundle exec'
alias grep='grep -i'
alias new='ls -lht | head'
alias heroku=’nocorrect heroku’
alias git='nocorrect /usr/local/bin/git'
alias ag="nocorrect noglob ag --smart-case --context"
alias lg='ls | grep'
alias ze='zeus'
alias f='mdfind -onlyin . -name'
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Uncomment following line if you want to disable autosetting terminal title.
DISABLE_AUTO_TITLE="true"
plugins=(git ruby rails osx history-substring-search zsh-syntax-highlighting gnu-utils git-flow)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
unsetopt correct
autoload -U select-word-style
select-word-style bash
[[ -f `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh # autojump plugin wasn't working for me
alias mv='gmv -vi' # must be after plugins
export EDITOR=~/bin/subl
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:$HOME/bin:/usr/X11R6/bin
export HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS='' # makes up/down search case sensitive
# because http://stackoverflow.com/q/9044551/
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
function dev() { cd `ruby -e 'puts File.realpath File.expand_path %q{~/dev}'`}
function gitdel() { nocorrect git branch -d $1 && git push origin :$1 }
eval "$($HOME/Blake/bx/bin/bx init -)"
# chruby
source /usr/local/share/chruby/chruby.sh
RUBIES=(~/.rbenv/versions/*)
chruby 2.0.0-p195
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment