From 2950c3df5cffa454787edce591d161fae8faa3f0 Mon Sep 17 00:00:00 2001 From: Brad Ganley Date: Tue, 17 Oct 2023 13:43:35 -0500 Subject: [PATCH] Made the "s" alias better --- .bash_aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index fa498e9..9c3c592 100755 --- a/.bash_aliases +++ b/.bash_aliases @@ -95,7 +95,7 @@ alias sysup='sudo systemctl enable --now' alias sysdn='sudo systemctl disable --now' #opens specified command in new window in screen session -alias s='screen -X screen ' +alias s='screen -ls > /dev/null && screen -X screen || screen' # Resume screen or create a new one named main alias scr='screen -r || screen -S main' # press enter to continue. Occasionally useful