-
-
Save nirnaeth/9a0a55990cb14d018707f7e1ea55a2bb to your computer and use it in GitHub Desktop.
Bashrc work
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
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