Skip to content

Instantly share code, notes, and snippets.

@chandlervdw
Created July 25, 2017 18:15
Show Gist options
  • Save chandlervdw/887c45b40a25183767a7345eeaca00e3 to your computer and use it in GitHub Desktop.
Save chandlervdw/887c45b40a25183767a7345eeaca00e3 to your computer and use it in GitHub Desktop.
My oh-my-zsh config, if you care.
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
ZSH_CUSTOM=$HOME/zsh_custom
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Example aliases
alias zshconfig="atom ~/.zshrc"
alias ohmyzsh="atom ~/.oh-my-zsh"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="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 sublime)
plugins=(git sublime git-auto-status)
source $ZSH/oh-my-zsh.sh
# alias st="subl"
alias rs="rails s"
alias reload="source ~/.zshrc"
alias bower='noglob bower'
alias gw='grunt watch'
alias gs='grunt server'
alias deploy='git push heroku master'
alias deploy:prod='git push prod master'
alias deploy:dev='git push -f dev master'
alias gmt='git mergetool'
alias gpull='git pull'
alias undo="history 10 | tail -r | gitjk_cmd"
alias heroku="noglob heroku"
alias ni="npm install"
alias rmf="rm -rf"
alias ni="npm install"
alias rn="react-native run-ios"
alias stree='/Applications/SourceTree.app/Contents/Resources/stree'
alias rn5="react-native run-ios --simulator=\"iPhone 5\""
alias rn7="react-native run-ios --simulator=\"iPhone 7\""
alias gbranchclean="gitbranchclean"
alias gcleanbranch="gitbranchclean"
alias gbc="gitbranchclean"
function gitbranchclean() {
git fetch -p &&
for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'` ;
do git branch -D $branch ;
done ;
}
REACT_EDITOR=atom
# Customize to your needs...
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
# export PATH=/usr/local/php5/bin:$PATH # http://php-osx.liip.ch/
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/share/npm/bin:$PATH"
export NVM_DIR="/Users/chandlervdw/.nvm"
export PATH="$HOME/.node/bin:$PATH"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
source ~/.iterm2_shell_integration.`basename $SHELL`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment