- check number of args for "1", and "-v", LP: #494465
  - make more zsh friendly, don't use -c
This commit is contained in:
Dustin Kirkland 2009-12-14 16:36:02 -06:00
commit 497f2d5aa4
2 changed files with 5 additions and 5 deletions

6
byobu
View file

@ -40,13 +40,11 @@ byobu-janitor --force
printf "\033]0;${USER}@$(hostname) - ${PKG}\007"
# Launch motd+shell, unless the user has default windows set to launch
[ -x "$SHELL" ] || SHELL="/bin/sh"
DEFAULT_WINDOW="$SHELL -c motd+shell"
grep -qs "^[^#]" "$HOME/.$PKG/windows" && DEFAULT_WINDOW=
grep -qs "^[^#]" "$HOME/.$PKG/windows" && DEFAULT_WINDOW= || DEFAULT_WINDOW="motd+shell"
# Now let's execute screen!
if [ "$#" = "0" ]; then
exec screen -c "/usr/share/$PKG/profiles/byoburc" $DEFAULT_WINDOW
exec screen -c "/usr/share/$PKG/profiles/byoburc" -t shell $DEFAULT_WINDOW
else
exec screen -c "$HOME/.$PKG/profile" "$@"
fi

4
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (2.41) unreleased; urgency=low
* byobu: check number of args for "1", and "-v", LP: #494465
* byobu:
- check number of args for "1", and "-v", LP: #494465
- make more zsh friendly, don't use -c
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 13 Dec 2009 19:16:43 -0800