Commit 08beb386 authored by Hermann Mayer's avatar Hermann Mayer

BashRC: Set the xterm title to the current working directory.

parent af718f24
......@@ -38,13 +38,13 @@ if ${use_color} ; then
if [ "$DIRECTORY_INFO_PROMPT" -eq 0 ]; then
PSL1A=' \[\e[0;31m\][\[\e[1;37m\]\[\e[0;36m\]\w\[\e[0;31m\]]'
PSL1=${RET_OUT}${PSL1A}
PSL2='\n\[\e[0;31m\][\u\[\e[0;33m\]@\[\e[0;37m\]\h\[\e[0;31m\]] \[\e[0;31m\]$ \[\e[0;32m\]'
PSL2='\n\[\e[0;31m\][\u\[\e[0;33m\]@\[\e[0;37m\]\h\[\e[0;31m\]] \[\e[0;31m\]$ \[\e[0;32m\]\033]2;\w\007'
else
PSL1A=' \[\e[0;31m\][\[\e[1;37m\]Files: '
PSL1B="\$(ls -a1 | grep -vE '\.$' | wc -l) | Size: \$(ls -lah | head -n1 | cut -d ' ' -f2) |"
PSL1C=' \[\e[0;36m\]\w\[\e[0;31m\]]'
PSL1=${RET_OUT}${PSL1A}${PSL1B}${PSL1C}
PSL2='\n\[\e[0;31m\][\u\[\e[0;33m\]@\[\e[0;37m\]\h\[\e[0;31m\]] \[\e[0;31m\]$ \[\e[0;32m\]'
PSL2='\n\[\e[0;31m\][\u\[\e[0;33m\]@\[\e[0;37m\]\h\[\e[0;31m\]] \[\e[0;31m\]$ \[\e[0;32m\]\033]2;\w\007'
fi
PS1=${PSL1}${PSL2}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment