Hello Group,
Screen version: Screen version 4.00.03jw4 (FAU) 2-May-06
OS: Debian Squeeze (CUI only environment)
I am trying to dynamically update shelltitle to the command that I am running. I found an online document that instructed the reader to configure .bashrc as follows:
Code:
case $TERM in
screen*)
SCREENTITLE=‘\[\ek\e\\\]‘
;;
*)
SCREENTITLE=”
;;
esac
PS1="${SCREENTITLE}${PS1}"
My .screenrc is configured as follows:
Code:
# disable bell
vbell off
# disable startup message
startup_message off
# detach on hangup
autodetach on
# erase background with current bg color
defbce "on"
# caption
caption always "%?%F%{= wk}%:%{= ww}%?%-w%{=u Wk}%n %t%{-}%+w"
# shell title
# hardstatus
hardstatus off
I am not sure what to assign for the shelltitle directive. I read few online documents and example however, I was not able to make it work. Any advise will be greatly appreciated.
Regards,
Shuple