Last active
December 12, 2015 10:19
-
-
Save vosechu/4757905 to your computer and use it in GitHub Desktop.
My .zshrc file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias out="cd ~/out/" | |
alias v="cd ~/out/vosechu" | |
alias vg="cd ~/out/vosechu/vosechu.github.com" | |
alias vw="cd ~/out/vosechu/warmup-exercises" | |
alias vp="cd ~/out/vosechu/portlandcodeschool" | |
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# 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" | |
# ZSH_THEME="nebirhos" | |
ZSH_THEME="vosechu" | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.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) | |
plugins=(git) | |
source $ZSH/oh-my-zsh.sh | |
# Customize to your needs... | |
export PATH=/Users/vosechu/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/share/python | |
# Misc | |
alias dn="growlnotify -m 'Done!'" | |
alias e="subl -n ." | |
alias ls="ls -G" | |
alias lthead="ls -lt | head" | |
alias less="less -R" | |
alias pax="ps ax | grep" | |
alias bi="brew install" | |
alias ww="watchr Watchrfile" | |
alias v="cd ~/out/vosechu" | |
alias pcs="cd ~/out/vosechu/portlandcodeschool" | |
alias vg="cd ~/out/vosechu/vosechu.github.com" | |
# Zsh | |
alias zc="vi ~/.zshrc" | |
alias zs=". ~/.zshrc" | |
# Git | |
alias gs="git status" | |
alias gac="git add -A . && git commit -a" | |
alias gacm="git add -A . && git commit -am" | |
alias gaa="git add -A ." | |
alias gcm="git commit -am" | |
alias gfo="git pull origin" | |
alias gfom="git pull origin master" | |
alias gfu="git pull upstream" | |
alias gfum="git pull upstream master" | |
alias gru="git reset --hard upstream/master" | |
alias gro="git reset --hard origin/master" | |
alias gcom="git checkout master" | |
alias gcob="git checkout -b" | |
alias gpo="git push origin" | |
alias gpom="git push origin master" | |
alias gpu="git push upstream" | |
alias gpum="git push upstream master" # This probably shouldn't be done much | |
alias gph="git push heroku" | |
alias gphm="git push heroku master" | |
alias gpr="hub pull-request -b" | |
# Rake/Rails | |
alias be="bundle exec" | |
alias r="be rake" | |
alias rt="RAILS_ENV=test r" | |
alias rs="be rails server" | |
alias rc="be rails console" | |
alias rdm="r db:migrate" | |
alias rg="be rails generate" | |
alias rgs="be rails generate scaffold" | |
alias rgm="be rails generate model" | |
alias rgc="be rails generate controller" | |
alias ms="middleman server" | |
alias j="jekyll --server --auto" | |
# Testing | |
alias at="autotest" | |
alias atc="autotest -cf" | |
alias wat="watchr Watchrfile" | |
# Curl | |
alias cjget="curl -X GET -H \"Accept: application/json\"" | |
alias cjpost="curl -X POST -H \"Accept: application/json\" -H \"Content-type: application/x-www-form-urlencoded\"" | |
alias cjput="curl -X PUT -H \"Accept: application/json\" -H \"Content-type: application/x-www-form-urlencoded\"" | |
alias cjdel="curl -X DELETE -H \"Accept: application/json\" -H \"Content-type: application/x-www-form-urlencoded\"" | |
export EDITOR='subl -w' | |
# Open a new tab with the last directory already loaded | |
export CURRENT_PROJECT_PATH=$HOME/.current-project | |
function chpwd { | |
echo $(pwd) >! $CURRENT_PROJECT_PATH | |
} | |
current() { | |
if [[ -f $CURRENT_PROJECT_PATH ]]; then | |
cd "$(cat $CURRENT_PROJECT_PATH)" | |
fi | |
} | |
current | |
# Don't correct these items in .zsh_nocorrect. Handy for cap | |
if [ -f ~/.zsh_nocorrect ]; then | |
while read -r COMMAND; do | |
alias $COMMAND="nocorrect $COMMAND" | |
done < ~/.zsh_nocorrect | |
fi | |
### Added by the Heroku Toolbelt | |
export PATH="/usr/local/heroku/bin:$PATH" | |
export RI="--system" | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment