mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
check for existence of byobu, otherwise, fall back to calling
screen (for exports)
This commit is contained in:
parent
18747cbe22
commit
0fc845cca7
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ RUN="/var/run/screen/S-$USER"
|
|||
out=`screen -ls 2>/dev/null` || true
|
||||
if echo "$out" | grep -qsi "^No Sockets found in "; then
|
||||
# Start new session
|
||||
exec $PKG
|
||||
$(which $PKG >/dev/null) && exec $PKG || exec screen
|
||||
else
|
||||
# Set window title
|
||||
printf "\033]0;${USER}@$(hostname) - ${PKG}\007"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue