Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2c04013270
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (25 sloc) 0.473 kb
if [ -z "${USER}" ] ; then
USER=$LOGNAME
fi
if [ -n "${USER}" ] && [ ${USER} = root ] ; then
BASE="#"
else
BASE="$"
fi
case $TERM in
xterm*|*rxvt*|cygwin|interix|Eterm|mlterm|kterm|aterm|putty*)
if [ "${STY}" ] ; then
TITLE='k${USER}:${PWD}\\'
else
TITLE=']1;${USER}:${PWD}]2;${USER}:${PWD}'
fi
;;
screen*)
TITLE='k${USER}:${PWD}\\'
;;
*)
TITLE=''
;;
esac
PS1=$TITLE$'\E[01;32m'"${USER} "$'\E[01;34m''$PWD'" ${BASE} "$'\E[0m'
export PS1
Jump to Line
Something went wrong with that request. Please try again.