Last active
December 19, 2015 15:09
-
-
Save heartcode/5974311 to your computer and use it in GitHub Desktop.
.bash_profile v2
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 PATH="/bin:/sbin:/usr/local/etc:/usr/local/mysql/bin:/usr/bin:usr/local/sbin:/usr/local/bin:$PATH/.rbenv/bin:$HOME" | |
eval "$(rbenv init - --no-rehash)" | |
# Load SSH keys | |
ssh-add | |
[[ -s ~/.bashrc ]] && source ~/.bashrc | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
source ~/.git-completion.sh | |
# 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 gc="git checkout" | |
alias gcm="git commit -m" | |
alias gp="git push" | |
alias gprom="git pull --rebase origin master" | |
alias gprod="git pull --rebase origin develop" | |
alias gm="git merge" | |
# Shortcuts | |
alias la='ls -la' | |
alias be="bundle exec" | |
alias repow="powify server restart" | |
alias rserv="rails server" | |
alias redbum="rake db:migrate" | |
alias redbear="rake db:rollback" | |
alias redbeetop="rake db:test:prepare" | |
export EDITOR="subl -w" | |
export BUNDLE_EDITOR="subl" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment