Skip to content

Instantly share code, notes, and snippets.

@nirnaeth

nirnaeth/bashrc Secret

Created January 19, 2017 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nirnaeth/9a0a55990cb14d018707f7e1ea55a2bb to your computer and use it in GitHub Desktop.
Save nirnaeth/9a0a55990cb14d018707f7e1ea55a2bb to your computer and use it in GitHub Desktop.
Bashrc work
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
if which exenv > /dev/null; then eval "$(exenv init -)"; fi
# enable bash completion
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
alias b='bundle exec'
alias rs='bin/rails s'
alias rr='ps ax | grep ruby'
alias rbenv-update='(cd ~/.rbenv/plugins/ruby-build && git pull)'
alias bcw='b cucumber -p wip'
alias pods='kubectl get pods'
alias e='exenv exec'
alias bwp='pods --namespace=bodyweight-api --context=prod'
alias cpp='pods --namespace=payment-api --context=prod'
alias cup='pods --namespace=user-api --context=prod'
alias m='RAILS_ENV=test bundle exec mutant -r ./config/environment --use rspec'
alias pgstart='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start'
alias pgstop='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log stop'
kshell() {
kubectl exec -it "$@" -- env TERM=$TERM COLUMNS=$COLUMNS LINES=$LINES bash -il
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment