Last active
October 6, 2015 05:27
-
-
Save sydneyitguy/2943196 to your computer and use it in GitHub Desktop.
My 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
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
PS1="\[\033[0;32m\]\w\[\033[00m\]\$(parse_git_branch)\\$ " | |
alias ll='ls -la' | |
alias l='ls -CF' | |
alias gti='git' | |
alias first='ls -t | head -1' | |
alias d='cd ..' | |
export PATH="/usr/local/bin:$PATH" | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
function f() { | |
cd "`first`" | |
} | |
function cd() { | |
builtin cd "$@" | |
ls | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment