From: Iain Patterson Date: Tue, 2 Dec 2014 13:25:37 +0000 (+0000) Subject: Export SCREENRC in become. X-Git-Url: http://git.iain.cx/?p=profile.git;a=commitdiff_plain;h=43bd09dddc21deb45cee89c4bff4e094c9acab09 Export SCREENRC in become. Set SCREENRC in the environment so screen will be configured appropriately when run under sudo. --- 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