Skip to content

Instantly share code, notes, and snippets.

@float-tw
Created August 19, 2012 07:51
Show Gist options
  • Save float-tw/3393414 to your computer and use it in GitHub Desktop.
Save float-tw/3393414 to your computer and use it in GitHub Desktop.
bashrc note
# two line prompt (show git branch)
PS1='\n\[\033[01;30m\]┌[\[\033[00m\]'
PS1+='${debian_chroot:+($debian_chroot)}'
PS1+='\[\033[01;32m\]\u\[\033[00m\]@\h'
PS1+='\[\033[01;30m\]]\[\033[00m\]:'
PS1+='\[\033[01;33m\]\w\[\033[00m\]'
PS1+='\[\033[01;34m\]$(__git_ps1)\[\033[00m\]'
PS1+='\n\[\033[01;30m\]└─\[\033[00m\]\$ '
# For colourful man pages (CLUG-Wiki style)
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment