Commit e5545470 authored by Hermann Mayer's avatar Hermann Mayer

BashRC: Added current time to the prompt.

parent 0f275620
......@@ -40,11 +40,14 @@ if ${use_color} ; then
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\] '
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\]]\[\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\] '
_TIME='\t'
_FILES="\$(ls -a1 | grep -vE '\.$' | wc -l)"
_SIZE="\$(ls -lah | head -n1 | cut -d ' ' -f2)"
_META="${_TIME} | Files: ${_FILES} | Size: ${_SIZE} | \[\e[0;36m\]\w"
META=" \[\e[0;31m\][\[\e[1;37m\]${_META}\[\e[0;31m\]]\[\e[0;32m\]\033]2;\w\007"
PSL1=${RET_OUT}${META}
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