Merge branch 'master' of github.com:ajdelgado/my_bashrc

This commit is contained in:
Antonio J. Delgado 2022-05-06 18:11:07 +03:00
commit e13d66eb50

View file

@ -4,6 +4,11 @@
if [ -n "$(which screen)" ]; then
if [ -n "${STY}" ]; then
echo "This is screen session '${STY//[0-9]*\./}'"
if [ -n "$(which xtitle)" ]; then
xtitle "${session_name}"
else
echo "xtitle is not installed so I can't update the title of the X window with the session name. Install it and the experience will be better)"
fi
else
echo "This is not a screen session, let's create one. Name of the session?"
read -r session_name