mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
move custom window handling up a bit
This commit is contained in:
parent
853837d354
commit
9da3a6cca6
1 changed files with 5 additions and 4 deletions
|
@ -58,16 +58,17 @@ if [ "$#" = "0" ]; then
|
|||
else
|
||||
NO_SOCKETS="^No Sockets found in "
|
||||
fi
|
||||
if echo "$out" | LANG=C grep -qsi "$NO_SOCKETS"; then
|
||||
if [ -s "$BYOBU_WINDOWS" ]; then
|
||||
# Launch with custom window set
|
||||
cat "$BYOBU_WINDOWS" > "$HOME/.$PKG/.windows-tmp"
|
||||
exec screen $SCREEN_TERM -c "/usr/share/$PKG/profiles/byoburc"
|
||||
elif echo "$out" | LANG=C grep -qsi "$NO_SOCKETS"; then
|
||||
# Start new session
|
||||
exec screen $SCREEN_TERM -c "/usr/share/$PKG/profiles/byoburc" -t shell $DEFAULT_WINDOW
|
||||
else
|
||||
# Select and attach to an existing session
|
||||
exec byobu-select-session
|
||||
fi
|
||||
elif [ -s "$BYOBU_WINDOWS" ]; then
|
||||
cat "$BYOBU_WINDOWS" > "$HOME/.$PKG/.windows-tmp"
|
||||
exec screen $SCREEN_TERM -c "/usr/share/$PKG/profiles/byoburc"
|
||||
else
|
||||
exec screen $SCREEN_TERM -c "$HOME/.$PKG/profile" "$@"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue