mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* screen: wrapper script should add a -c arg, and specify your chosen
profile, and ensure that .screenrc at least exists, prevent recursion from happening to upgrading users by pruning source of ~/.screenrc-profile from ~/.screenrc, LP: #323756
This commit is contained in:
parent
836aae8ec0
commit
554819558d
1 changed files with 7 additions and 1 deletions
8
screen
8
screen
|
@ -27,5 +27,11 @@
|
|||
# Ensure that their default windows are seeded
|
||||
[ -r "$HOME/.screenrc-windows" ] || cp "/usr/share/screen-profiles/windows/common" "$HOME/.screenrc-windows"
|
||||
|
||||
# Ensure that the user's .screenrc at least exists
|
||||
[ -r "$HOME/.screenrc" ] || touch "$HOME/.screenrc"
|
||||
|
||||
# Prevent recursion; .screenrc should no longer source .screenrc-profile
|
||||
sed -i '/^source .*\.screenrc-profile$/d' $HOME/.screenrc
|
||||
|
||||
# Now let's execute screen!
|
||||
exec /usr/bin/screen.real "$@"
|
||||
exec /usr/bin/screen.real -c "$HOME/.screenrc-profile" "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue