mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* profiles/common, screen: create a temp file to use on screen launch,
consisting of the profile plus the windows, but don't source default windows otherwise as this breaks F5-refresh, LP: #368786 Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
a7fc58c7de
commit
f5b38ecb52
3 changed files with 10 additions and 3 deletions
5
debian/changelog
vendored
5
debian/changelog
vendored
|
@ -6,8 +6,11 @@ screen-profiles (1.52) unreleased; urgency=low
|
||||||
LP: #368925
|
LP: #368925
|
||||||
* profiles/profile.skel: swap the position of ip-address and menu
|
* profiles/profile.skel: swap the position of ip-address and menu
|
||||||
* screen-profiles.1: document all notifications, LP: #369040
|
* screen-profiles.1: document all notifications, LP: #369040
|
||||||
|
* profiles/common, screen: create a temp file to use on screen launch,
|
||||||
|
consisting of the profile plus the windows, but don't source default
|
||||||
|
windows otherwise as this breaks F5-refresh, LP: #368786
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 29 Apr 2009 00:36:48 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 29 Apr 2009 01:14:27 -0500
|
||||||
|
|
||||||
screen-profiles (1.51-0ubuntu1) karmic; urgency=low
|
screen-profiles (1.51-0ubuntu1) karmic; urgency=low
|
||||||
|
|
||||||
|
|
|
@ -62,4 +62,3 @@ altscreen on
|
||||||
defscrollback 10000
|
defscrollback 10000
|
||||||
|
|
||||||
source $HOME/.screen-profiles/keybindings
|
source $HOME/.screen-profiles/keybindings
|
||||||
source $HOME/.screen-profiles/windows
|
|
||||||
|
|
7
screen
7
screen
|
@ -79,7 +79,12 @@ fi
|
||||||
|
|
||||||
# Now let's execute screen!
|
# Now let's execute screen!
|
||||||
if [ "$#" = "0" ]; then
|
if [ "$#" = "0" ]; then
|
||||||
exec /usr/bin/screen.real -c "$HOME/.screen-profiles/profile" /usr/bin/motd+shell
|
# Create a temporary config file *with* the default windows
|
||||||
|
# but if we refresh, we'll just source the profile, without
|
||||||
|
temp=$(mktemp screen-profiles-XXXXXXXX)
|
||||||
|
trap "rm -f $temp 2>/dev/null || true" EXIT HUP INT QUIT TERM
|
||||||
|
cat "$HOME/.screen-profiles/profile" "$HOME/.screen-profiles/windows" > "$temp"
|
||||||
|
exec /usr/bin/screen.real -c "$temp" /usr/bin/motd+shell
|
||||||
else
|
else
|
||||||
exec /usr/bin/screen.real -c "$HOME/.screen-profiles/profile" "$@"
|
exec /usr/bin/screen.real -c "$HOME/.screen-profiles/profile" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue