bin/byobu, bin/byobu-janitor, share/byobu/profiles/byoburc: add support

for different window sets, LP: #517796
This commit is contained in:
Dustin Kirkland 2010-05-03 09:03:47 -05:00
commit 28aab33ec7
4 changed files with 5 additions and 0 deletions

2
debian/changelog vendored
View file

@ -2,6 +2,8 @@ byobu (2.74) unreleased; urgency=low
* usr/lib/byobu/disk_io: fix regex to support RAID devices, LP: #572855 * usr/lib/byobu/disk_io: fix regex to support RAID devices, LP: #572855
* debian/postinst: make debconf question failsafe, LP: #569041 * debian/postinst: make debconf question failsafe, LP: #569041
* bin/byobu, bin/byobu-janitor, share/byobu/profiles/byoburc: add support
for different window sets, LP: #517796
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 28 Apr 2010 23:11:14 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Wed, 28 Apr 2010 23:11:14 -0500

View file

@ -40,6 +40,7 @@ printf "\033]0;${USER}@$(hostname) - ${PKG}\007"
# Launch motd+shell, unless the user has default windows set to launch # Launch motd+shell, unless the user has default windows set to launch
grep -qs "^[^#]" "$HOME/.$PKG/windows" && DEFAULT_WINDOW= || DEFAULT_WINDOW="motd+shell" grep -qs "^[^#]" "$HOME/.$PKG/windows" && DEFAULT_WINDOW= || DEFAULT_WINDOW="motd+shell"
[ -r "$BYOBU_WINDOWS" ] && cat "$BYOBU_WINDOWS" > "$HOME/.$PKG/.windows-tmp"
# Check if our terminfo supports 256 colors # Check if our terminfo supports 256 colors
[ -x /usr/bin/tput ] && [ $(/usr/bin/tput colors 2>/dev/null || echo 0) -eq 256 ] && SCREEN_TERM="-T screen-256color" [ -x /usr/bin/tput ] && [ $(/usr/bin/tput colors 2>/dev/null || echo 0) -eq 256 ] && SCREEN_TERM="-T screen-256color"

View file

@ -90,6 +90,7 @@ fi
[ -r "$HOME/.$PKG/status" ] || $(grep -A 999999 BEGIN_CUT_HERE /etc/$PKG/statusrc | grep -B 999999 END_CUT_HERE | grep -v CUT > "$HOME/.$PKG/status") [ -r "$HOME/.$PKG/status" ] || $(grep -A 999999 BEGIN_CUT_HERE /etc/$PKG/statusrc | grep -B 999999 END_CUT_HERE | grep -v CUT > "$HOME/.$PKG/status")
[ -r "$HOME/.$PKG/windows" ] || touch "$HOME/.$PKG/windows" [ -r "$HOME/.$PKG/windows" ] || touch "$HOME/.$PKG/windows"
[ -r "$HOME/.screenrc" ] || touch "$HOME/.screenrc" [ -r "$HOME/.screenrc" ] || touch "$HOME/.screenrc"
echo > "$HOME/.$PKG/.windows-tmp"
# Affects: Upgrades from <= byobu-2.11 # Affects: Upgrades from <= byobu-2.11
# The status scripts used to have hyphens in their name, but now use # The status scripts used to have hyphens in their name, but now use

View file

@ -21,4 +21,5 @@
source $HOME/.byobu/profile source $HOME/.byobu/profile
source $HOME/.byobu/windows source $HOME/.byobu/windows
source $HOME/.byobu/.windows-tmp
source $HOME/.screenrc source $HOME/.screenrc