Last active
January 4, 2020 13:51
-
-
Save dgreenbe77/afdf38ff7f1d07eeb91b to your computer and use it in GitHub Desktop.
zsh alias
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
| export BUNDLER_EDITOR='/Applications/RubyMine.app/Contents/MacOS/rubymine' | |
| defaults write NSGlobalDomain KeyRepeat -int 0 | |
| RUBYMINE_VM_OPTIONS="/Users/dgreenbe77/.rubymine_vm_options" | |
| #ALIASES YO | |
| #Files | |
| alias zsh="vim ~/.zshrc" | |
| alias regex="vim ~/Development/regex.txt" | |
| #Tests | |
| alias rs="rspec" | |
| alias cu="cucumber" | |
| alias js="RAILS_ENV=test rake spec:javascript" | |
| alias knap="KNAPSACK_GENERATE_REPORT=true bundle exec" | |
| #Git | |
| function gac(){ | |
| git add -A . | |
| git ci -m$1 | |
| } | |
| function gacp(){ | |
| git add -A | |
| git ci -m$1 | |
| git push origin $2 | |
| } | |
| alias gs='git status' | |
| alias grr='git remote rm' | |
| alias gra='git remote add origin' | |
| alias gd='git diff' | |
| alias gpo='git push origin' | |
| alias gpuo='git pull origin' | |
| alias gpod='git push origin development' | |
| alias gpuod='git pull origin development' | |
| alias gpuom='git pull origin master' | |
| alias gcpush='git config --global push.default matching' | |
| alias gco='git checkout' | |
| alias gbd='git branch -d' | |
| alias gcp='git cherry pick' | |
| alias gst='git stash' | |
| alias gstc='git stash clear' | |
| alias gstp='git stash pop' | |
| alias gstl='git stash list' | |
| alias grh='git reset head' | |
| alias grh1='git reset head\^1 | |
| #Sidekiq | |
| alias sq='sidekiq -q' | |
| alias si='sidekiq -q import' | |
| alias sc='sidekiq -q critical' | |
| alias sd='sidekiq -q default' | |
| alias sm='sidekiq -q mailer' | |
| alias sf='sidekiq -q default -q critical -q mailer -q import -q priority_import' | |
| #Bundle | |
| alias bus="bundle update --source" | |
| alias bu="bundle update" | |
| alias bi="bundle install" | |
| #Heroku | |
| function hltf(){ | |
| heroku logs -t -a frederick-$1 | |
| } | |
| function hrcf(){ | |
| heroku run rails c -a frederick-$1 | |
| } | |
| function hpgpu(){ | |
| heroku pg:pull DATABASE $1 -a $2 | |
| } | |
| function hpgpuf(){ | |
| heroku pg:pull DATABASE frederick_$1 -a frederick-$2 | |
| } | |
| alias hlt="heroku logs -t -a" | |
| alias hrc="heroku run rails c -a" | |
| #Rake | |
| alias rdbmt="rake db:migrate db:test:prepare" | |
| alias rdbcmt="rake db:create db:migrate db:test:prepare" | |
| alias rdbdcmt="rake db:drop db:create db:migrate db:test:prepare" | |
| alias rdbr="rake db:rollback" | |
| alias rdbrr="rake db:rollback && rake db:rollback" | |
| alias rdbrrr="rake db:rollback & rake db:rollback && rake db:rollback" | |
| alias rdbc="rake db:create" | |
| alias rdbd="rake db:drop" | |
| #Rails | |
| alias rc="rails c" | |
| alias rcs="rails c --sandbox" | |
| alias rgm='rails g migration' | |
| #Tunnel | |
| alias tunnel="pagekite.py 3000 fred12345.pagekite.me" | |
| alias ngrok="ngrok 80" | |
| #Fred Directories | |
| alias fred="cd ~/Development/frederick" | |
| alias fgem="cd ~/Development/frederick_gem" | |
| alias fdata="cd ~/Development/frederick_data_interface" | |
| alias fmind="cd ~/Development/frederick_mindbody" | |
| alias ftouch="cd ~/Development/frederick_touchsuite" | |
| alias fro="cd ~/Development/frederick_ro_writer" | |
| alias fbook="cd ~/Development/frederick_booker" | |
| alias futil="cd ~/Development/frederick_utilities" | |
| #CMD Line | |
| alias wd="pwd" | |
| alias psa="ps aux" | |
| alias psas="ps aux | grep" | |
| alias lsm="ls -lm" | |
| alias lst="ls -lt" | |
| alias hs="history | grep" | |
| alias h="history" | |
| alias cb="cd -" | |
| alias lss="ls -al | grep" | |
| alias ddb="dropdb" | |
| alias lal="ls -al" | |
| alias fdc="find . -name $1" | |
| alias fdu="find ~/ -name $1" | |
| alias s!='sudo !!' | |
| alias k='kill -9' | |
| alias to='top -o' | |
| alias tom='top -o -mem' | |
| alias toc='top -o -cpu' | |
| alias m='man' | |
| alias wi='whatis' | |
| alias dev="cd ~/Development" | |
| alias ssu="sudo su" | |
| function mkcd(){ | |
| mkdir $1 | |
| cd $1 | |
| } | |
| #Psql | |
| alias kpsql="rm /usr/local/var/postgres/postmaster.pid" | |
| function ddbf(){ | |
| dropdb frederick_$1 | |
| } | |
| #Gem | |
| alias gi="gem install" | |
| #Say | |
| alias bubbles="say -v bubbles" | |
| alias zarvox="say -v zarvox" | |
| alias deranged="say -v deranged" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment