Skip to content

Commit

Permalink
Merge branch 'ps1-title' into rc/master
Browse files Browse the repository at this point in the history
  • Loading branch information
rctay committed May 6, 2013
2 parents e6c2bed + c40377c commit 4038833
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions etc/profile
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ esac
[ -r /git/contrib/completion/git-prompt.sh ] && . /git/contrib/completion/git-prompt.sh

# non-printable characters must be enclosed inside \[ and \]
PS1='\[\033[0m\]' # VT100 compat: reset all colors
PS1='\[\033]0;$MSYSTEM:\w\007\]' # set window title
PS1="$PS1"'\n' # new line
PS1="$PS1"'\[\033[32m\]' # change color
PS1="$PS1"'\u@\h ' # user@host<space>
PS1="$PS1"'\[\033[33m\]' # change color
Expand All @@ -164,10 +165,6 @@ then
fi
PS1="$PS1"'\[\033[0m\]' # change color
PS1="$PS1"'\n' # new line
# show MSYSTEM if non-standard
if [ "$MSYSTEM" != "MINGW32" ]; then
PS1="$PS1"'\[\033[35m\]($MSYSTEM)\[\033[0m\] '
fi
PS1="$PS1"'$ ' # prompt: always $

# set default options for 'less'
Expand Down

0 comments on commit 4038833

Please sign in to comment.