fix title for existing session

This commit is contained in:
Antonio J. Delgado 2022-06-07 08:43:03 +03:00
parent 4c520b8063
commit 2240092214

View file

@ -3,7 +3,8 @@
if [ -n "$(which screen)" ]; then if [ -n "$(which screen)" ]; then
if [ -n "${STY}" ]; then if [ -n "${STY}" ]; then
echo "This is screen session '${STY//[0-9]*\./}'" session_name="${STY//[0-9]*\./}"
echo "This is screen session '${session_name}'"
if [ -n "$(which xtitle)" ]; then if [ -n "$(which xtitle)" ]; then
"$(which xtitle)" "${session_name}" "$(which xtitle)" "${session_name}"
else else