Skip to content

Instantly share code, notes, and snippets.

@whroman
Created April 13, 2016 20:11
Show Gist options
  • Save whroman/1c601f8d12b9634784a5c18dc32ea31a to your computer and use it in GitHub Desktop.
Save whroman/1c601f8d12b9634784a5c18dc32ea31a to your computer and use it in GitHub Desktop.
# Sanity - Start
echo "Booting up..."
# Load environment vars
. ~/.env_vars
# Aliases
alias ns="npm start"
alias nr="npm run"
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
## Git
git config --global alias.s status
git config --global alias.b branch
git config --global alias.a add
git config --global alias.aa "add -A ."
git config --global alias.c commit
git config --global alias.ca "commit -a"
git config --global alias.d diff
git config --global alias.dc "diff --cached"
git config --global alias.dcs "diff --cached --stat"
git config --global alias.ds "diff --stat"
git config --global alias.co "checkout"
# Git Autocomplete
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
# Load NVM
export NVM_DIR="/Users/walterroman/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
# Sanity - End
echo "I am ready for your input. I believe in you!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment