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