From a15a6a2394968f019abd7a263f23c9d367a859aa Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 23 Jan 2015 14:09:33 +0900 Subject: [PATCH] Set USER in profile --- profile | 6 ++++++ shrc | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/profile b/profile index 5190ced..e1e7673 100755 --- a/profile +++ b/profile @@ -88,6 +88,12 @@ then TERM=screen-256color fi +if test '!' -v USER -a -v USERNAME +then + export USER=$USERNAME +fi + + # set TMP, TEMP, TMPDIR if test -z "$TMP" diff --git a/shrc b/shrc index b6d9f09..b77a32c 100755 --- a/shrc +++ b/shrc @@ -71,10 +71,6 @@ else return fi -if $iswindows -then - export USER=$USERNAME -fi $ismsys && export HOSTNAME # adhoc fix for ansible on cygwin