Skip to content

Instantly share code, notes, and snippets.

@AdamJB
Created June 18, 2013 00:36
Show Gist options
  • Save AdamJB/5801771 to your computer and use it in GitHub Desktop.
Save AdamJB/5801771 to your computer and use it in GitHub Desktop.
Some custom bash configs
# .bash_profile
alias ls='ls -G'
alias ll='ls -la'
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[1;32m\]"
BLUE="\[\033[1;34m\]"
NO_COLOUR="\[\033[0m\]"
PS1="$GREEN\u@\h$BLUE \W$YELLOW\$(parse_git_branch) $NO_COLOUR\$ "
# .gitconfig
[color]
ui = auto
# Vim: camo.vim and guardian.vim colors
# .vimrc
" Show the cursor position all the time
set ruler
" Color syntax highlighting
syntax on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment