Skip to content

Instantly share code, notes, and snippets.

@sydneyitguy
Last active October 6, 2015 05:27
Show Gist options
  • Save sydneyitguy/2943196 to your computer and use it in GitHub Desktop.
Save sydneyitguy/2943196 to your computer and use it in GitHub Desktop.
My Bash Profile
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