Created
August 26, 2017 22:54
-
-
Save marocas/e5e8ef7ed71d641fa884e63cf86efbe1 to your computer and use it in GitHub Desktop.
.bash_profile
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
source ~/.profile | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } | |
export PS1="\[\033[3;31m\]\u\[\033[m\]@\[\033[33;1m\]\h:\[\033[32m\]\w\[\033[m\]\$(parse_git_branch) \n > " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
# Custom Shorthand Commands | |
# some shorthands for git | |
alias clone='git clone' | |
alias gstat='git status' | |
alias gcho='git checkout' | |
alias gmg='git merge' | |
# alias glog='git log' | |
alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
# alias glogstat='git log --stat' | |
# alias gloggraph='git log --pretty=format:"%h %s" --graph' | |
alias install='npm i && bower i' | |
alias del='rm -rf' | |
alias gbranches='git branch -a' | |
# some shorthands for terminal | |
alias ls='ls -GFh -l' | |
alias cls='clear' | |
alias ..='cd ..' | |
alias dir='ls -la' | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" | |
# https://youtrack.jetbrains.com/issue/IDEA-121713 | |
# https://stackoverflow.com/questions/7165108/in-os-x-lion-lang-is-not-set-to-utf-8-how-to-fix-it | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment