* 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:
Dustin Kirkland 2009-02-02 14:07:23 +01:00
commit 554819558d

8
screen
View file

@ -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" "$@"