Commit 7d948144 authored by Hermann Mayer's avatar Hermann Mayer

BashRC: Fixed some glitches for the xterm title.

parent 08beb386
......@@ -36,15 +36,15 @@ if ${use_color} ; then
RET_OUT="\n$RET_OUT"
if [ "$DIRECTORY_INFO_PROMPT" -eq 0 ]; then
PSL1A=' \[\e[0;31m\][\[\e[1;37m\]\[\e[0;36m\]\w\[\e[0;31m\]]'
PSL1A=' \[\e[0;31m\][\[\e[1;37m\]\[\e[0;36m\]\w\[\e[0;31m\]]\[\e[0;32m\]\033]2;\w\007'
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\]\033]2;\w\007'
PSL2='\n\[\e[0;31m\][\u\[\e[0;33m\]@\[\e[0;37m\]\h\[\e[0;31m\]] \[\e[0;31m\]$\[\e[0;32m\] '
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\]]'
PSL1C=' \[\e[0;36m\]\w\[\e[0;31m\]]\[\e[0;32m\]\033]2;\w\007'
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\]\033]2;\w\007'
PSL2='\n\[\e[0;31m\][\u\[\e[0;33m\]@\[\e[0;37m\]\h\[\e[0;31m\]] \[\e[0;31m\]$\[\e[0;32m\] '
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