Skip to content

Instantly share code, notes, and snippets.

@robpataki
Last active August 2, 2018 10:30
Show Gist options
  • Save robpataki/9f79afc93115ad3b5293 to your computer and use it in GitHub Desktop.
Save robpataki/9f79afc93115ad3b5293 to your computer and use it in GitHub Desktop.
Bash profile
export PATH="/usr/local/bin:usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/etc:/usr/local/mysql/bin:/.rbenv/bin:$PATH"
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home"
# Load SSH keys
ssh-add -K ~/.ssh/id_rsa
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# Git Aware promt pimping:
# https://github.com/jimeh/git-aware-prompt
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source $GITAWAREPROMPT/main.sh
export PS1="\u \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
# Git shortcuts
alias gst="git status"
alias gfp="git fetch -p"
alias gpom="git push origin master"
alias gpod="git push origin develop"
alias gprom="git pull --rebase origin master"
alias gprod="git pull --rebase origin develop"
alias glog="git log --graph --all --pretty=format:'%C(yellow)%h -%C(auto)%d %C(bold cyan)%s %C(bold white)(%cr)%Creset %C(dim white)<%an>'"
# Shortcuts
alias la='ls -la'
export EDITOR="subl -w"
export BUNDLE_EDITOR="subl"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment