~jbernard/+junk/byobu-disk-fix

« back to all changes in this revision

Viewing changes to byobu

  • Committer: Dustin Kirkland
  • Date: 2009-12-14 22:36:02 UTC
  • Revision ID: kirkland@canonical.com-20091214223602-bq2z0lqbk5ipwlf7
* byobu:
  - check number of args for "1", and "-v", LP: #494465
  - make more zsh friendly, don't use -c

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
printf "\033]0;${USER}@$(hostname) - ${PKG}\007"
41
41
 
42
42
# Launch motd+shell, unless the user has default windows set to launch
43
 
[ -x "$SHELL" ] || SHELL="/bin/sh"
44
 
DEFAULT_WINDOW="$SHELL -c motd+shell"
45
 
grep -qs "^[^#]" "$HOME/.$PKG/windows" && DEFAULT_WINDOW=
 
43
grep -qs "^[^#]" "$HOME/.$PKG/windows" && DEFAULT_WINDOW= || DEFAULT_WINDOW="motd+shell"
46
44
 
47
45
# Now let's execute screen!
48
46
if [ "$#" = "0" ]; then
49
 
        exec screen -c "/usr/share/$PKG/profiles/byoburc" $DEFAULT_WINDOW
 
47
        exec screen -c "/usr/share/$PKG/profiles/byoburc" -t shell $DEFAULT_WINDOW
50
48
else
51
49
        exec screen -c "$HOME/.$PKG/profile" "$@"
52
50
fi