fannar (owner)

Fork Of

gist: 39566 by mernen bashrc: colored and fairly ...

Revisions

gist: 66069 Download_button fork
public
Description:
Term prompt
Public Clone URL: git://gist.github.com/66069.git
Embed All Files: show embed
Bash #
1
2
3
4
5
6
7
8
9
10
11
12
# colored prompt, with git support
PS1='\[\033[38m\]\u@\h \[\033[94m\]\W\[\033[95m\]$(__git_ps1)\[\033[37m\]$\[\033
[00m\] '
 
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%.local}: ${PWD/$HOME/~}\007"'
    ;;
*)
    ;;
esac