Created
December 28, 2015 05:40
-
-
Save jasonwc/2da4d9403f0d36175a71 to your computer and use it in GitHub Desktop.
This file contains 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
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/jasonwc/.oh-my-zsh | |
# Set name of the theme to load. | |
ZSH_THEME="agnoster" | |
COMPLETION_WAITING_DOTS="true" | |
plugins=(git history jira rails web-search thefuckj) | |
# User configuration | |
export PATH="/usr/local/bin:/Users/jasonwc/.rbenv/shims:/Users/jasonwc/.rbenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
source $ZSH/oh-my-zsh.sh | |
# Preferred editor for local and remote sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
else | |
export EDITOR='sublime' | |
fi | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
export PATH="/usr/local/bin:$PATH" | |
DEFAULT_USER='jasonwc' | |
# CONFIGS | |
alias ohmyzsh="sublime ~/.oh-my-zsh" | |
alias zshconfig="sublime ~/.zshrc" | |
alias reload='source ~/.zshrc' | |
alias myip='ifconfig | grep 'inet ' | grep -v 127.0.0.1 | cut -d\ -f2 | tail -n1' | |
# WORK | |
alias pacman='ssh -i ~/.ssh/id_rsa.pub -f ubuntu@pacman.mstry.io -L 3316:127.0.0.1:3306 -N' | |
alias clever_test='ssh -i ~/.ssh/id_rsa.pub -f ubuntu@mc-appstaging.mstry.io -L 3316:sis-testing-staging.c1omvjtpeem9.us-east-1.rds.amazonaws.com:3306 -N' | |
# DIRECTORIES | |
alias mc='cd ~/Work/mc' | |
alias utahfamilyauto='cd ~/Projects/Rails/utahfamilyauto' | |
alias work='cd ~/Work' | |
alias projects='cd ~/Projects' | |
alias euler='cd ~/Projects/Ruby/Project\ Euler' | |
alias mc-botnet='cd ~/Work/mc-botnet' | |
alias mentorbot='cd ~/Projects/Ruby/mentorbot' | |
alias mentorapi='cd ~/Projects/Rails/dpl_mentors_api' | |
# START THINGS | |
alias start-pg='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start' | |
alias s='sublime' | |
alias sk='sidekiq' | |
alias start-memcached='launchctl load ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist' | |
alias fs='foreman start' | |
# SEARCH | |
alias ass='alias | grep ' | |
alias pss='ps aux | grep ' | |
alias hss='history | grep ' | |
alias rsport='lsof -wni tcp:3000' | |
# SPOTIFY | |
alias sn='spotify next | spotify status' # Skips to the next song in a playlist and shows the current song details. | |
alias sp='spotify prev | spotify status' # Returns to the previous song in a playlist and shows the current song details. | |
alias spp='spotify pause' # Pauses/Resumes Spotify playback | |
alias squit='spotify quit' # Stops playback and quits Spotify. | |
alias sup='spotify vol up' # Increases the volume by 10%. | |
alias sdown='spotify vol down' # Decreases the volume by 10%. | |
alias svol='spotify vol' # Sets the volume to an amount between 0 and 100. Takes [amount]. | |
alias sstatus='spotify status' # Shows the play status, including the current song details. | |
alias sshare='spotify share' # Shows and copies the current song URL to the clipboard for sharing. | |
alias sshuffle='spotify toggle shuffle' # Toggle shuffle playback mode. | |
alias srepeat='spotify toggle repeat' # Toggle repeat playback mode. | |
alias splaylist='spotify play list' # Finds a playlist by name and plays it. Takes [playlist name]. | |
# RAILS PLUGIN | |
# rc - rails console | |
# rd - rails destroy | |
# rdb - rails dbconsole | |
# rg - rails generate | |
# rgm - rails generate migration | |
# rp - rails plugin | |
# ru - rails runner | |
# rs - rails server | |
# rsd - rails server --debugger | |
# rdm - rake db:migrate | |
# rdms - rake db:migrate:status | |
# rdr - rake db:rollback | |
# rdc - rake db:create | |
# rds - rake db:seed | |
# rdd - rake db:drop | |
# rdtc - rake db:test:clone | |
# rdtp - rake db:test:prepare | |
# rdmtc - rake db:migrate db:test:clone | |
# rlc - rake log:clear | |
# rn - rake notes | |
# rr - rake routes | |
# JIRA PLUGIN | |
JIRA_URL='https://masteryconnect.atlassian.net' | |
# jira - Opens new issue form in browser | |
# jira MC-6764 - Opens issue in browser | |
# HISTORY PLUGIN | |
# h - List your command history. Equivalent to using history | |
# hsi - When called without an argument you will get help on grep arguments | |
# hsi [search text] - Performs a case insensitive grep search on your command history, looking for commands that match the argument provided | |
# WEB-SEARCH PLUGIN | |
# google [searchterm] | |
# bing [searchterm] | |
# yahoo [searchterm] | |
# duckduckgo [searchterm] | |
# GIT PLUGIN | |
alias gpset='git push --set-upstream origin master' | |
alias gcd='git checkout develop' | |
alias gtt='git checkout develop && git fetch && git pull origin develop' | |
# g - git | |
# ga - git add | |
# gaa - git add --all | |
# gb - git branch | |
# gcmsg - git commit -m | |
# gco - git checkout | |
# gcf - git config --list | |
# gd - git diff | |
# gf - git fetch | |
# gl - git pull | |
# glg - git log --stat --color | |
# glgg - git log --graph --color | |
# glgga - git log --graph --decorate --all | |
# glgm - git log --graph --max-count = 10 | |
# glgp - git log --stat --color -p | |
# glo - git log --oneline --decorate --color | |
# glog - git log --oneline --decorate --color --graph | |
# glol - git log --graph --pretty = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
# glola - git log --graph --pretty = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all | |
# glp - _git_log_prettily | |
# gm - git merge | |
# gp - git push | |
# gr - git remote | |
# gra - git remote add | |
# grb - git rebase | |
# grba - git rebase --abort | |
# grbc - git rebase --continue | |
# grv - git remote -v | |
# gss - git status -s | |
# gst - git status | |
# gsta - git stash | |
# gstaa - git stash apply | |
# gstl - git stash list | |
# gwch - git whatchanged -p --abbrev-commit --pretty = medium | |
### Added by the Heroku Toolbelt | |
export PATH="/usr/local/heroku/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment