From 9830f6d475cc5fc43ee97b9b515c04da3628db50 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sat, 7 May 2022 12:18:35 +0300 Subject: [PATCH] Be sure the path of commands is there --- bashrc.d/ZZZ_always_screen | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bashrc.d/ZZZ_always_screen b/bashrc.d/ZZZ_always_screen index 5748c6c..c830bea 100644 --- a/bashrc.d/ZZZ_always_screen +++ b/bashrc.d/ZZZ_always_screen @@ -5,7 +5,7 @@ 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}" + "$(which 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 @@ -14,11 +14,11 @@ if [ -n "$(which screen)" ]; then read -r session_name if [ -n "${session_name}" ] && [ "${session_name}" != "" ]; then if [ -n "$(which xtitle)" ]; then - xtitle "${session_name}" + "$(which 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 - screen -t "${session_name}" -S "${session_name}" && exit + "$(which screen)" -t "${session_name}" -S "${session_name}" && exit else echo "Ok, I'll leave you alone without a session..." fi