fix title for existing session
This commit is contained in:
parent
4c520b8063
commit
2240092214
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,8 @@
|
|||
|
||||
if [ -n "$(which screen)" ]; 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
|
||||
"$(which xtitle)" "${session_name}"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue