From 43bd09dddc21deb45cee89c4bff4e094c9acab09 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Tue, 2 Dec 2014 13:25:37 +0000 Subject: [PATCH] Export SCREENRC in become. Set SCREENRC in the environment so screen will be configured appropriately when run under sudo. --- opt/bin/become | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opt/bin/become b/opt/bin/become index ee447c7..d958646 100755 --- a/opt/bin/become +++ b/opt/bin/become @@ -85,6 +85,9 @@ if exec 3>"$file" && exec <"$file" && rm "$file"; then else echo >&3 "unset DISPLAY" fi + if [ ! "$PROFILE_HOME" = "$HOME" ]; then + echo >&3 "export SCREENRC=$PROFILE_HOME/.screenrc" + fi else exit 111 fi -- 2.20.1