Skip to content

Instantly share code, notes, and snippets.

@nirnaeth

nirnaeth/bashrc Secret

Created Jan 19, 2017
Embed
What would you like to do?
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