Created
April 1, 2019 23:55
-
-
Save bengrunfeld/1187955b88eb375b749f1a5775058871 to your computer and use it in GitHub Desktop.
My .bashrc - just in case my computer dies
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 PS1='\W $ ' | |
export PATH=$PATH:/Users/ben/.ssh | |
# Unix shortcuts | |
alias ..='cd ..' | |
# Shortcuts to directories and commands | |
alias c='cd ~/Desktop/Work/code' | |
alias p='c; cd passli-cli' | |
alias v='vagrant' | |
alias vi='vim' | |
alias ll='ls -lah' | |
alias fnd="grep --exclude-dir={exclude, directories, here} -rnw '.' -e" | |
alias d='cd ~/Desktop/Work/Diary' | |
alias pp='node passli.js' | |
# Node Aliases | |
alias bd='npm run buildDev' | |
alias bp='npm run buildProd' | |
alias s='npm start' | |
alias n='npm run' | |
# Git aliases | |
alias ga='git add' | |
alias gb='git branch' | |
alias gc='git commit' | |
alias gco='git checkout' | |
alias gfa='git checkout master && git fetch --all && git merge origin/master' | |
alias gl='git log' | |
alias gmb='git merge-base master' | |
alias gp='git push' | |
alias gr='git rebase -i' | |
alias gs='git status' | |
alias m='git checkout master' | |
# Rbenv needs to be in path | |
export PATH=$PATH:/Users/ben/.rbenv/shims | |
eval "$(rbenv init -)" | |
# The next line updates PATH for the Google Cloud SDK. | |
if [ -f '/Users/ben/Downloads/google-cloud-sdk/path.bash.inc' ]; then source '/Users/ben/Downloads/google-cloud-sdk/path.bash.inc'; fi | |
# The next line enables shell command completion for gcloud. | |
if [ -f '/Users/ben/Downloads/google-cloud-sdk/completion.bash.inc' ]; then source '/Users/ben/Downloads/google-cloud-sdk/completion.bash.inc'; fi | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment