fixing a weird misprint of user
authorChris Koeritz <fred@gruntose.com>
Wed, 15 Nov 2017 00:21:19 +0000 (19:21 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 15 Nov 2017 00:21:19 +0000 (19:21 -0500)
the user was showing up as root for developer somehow.

scripts/tty/terminal_titler.sh

index b59dd3dd8e7fc54049d24b66aaa532d7e3f4fc6e..0203b9ae7fd771bbacbc80b1c2d2319e34462e3f 100644 (file)
@@ -102,7 +102,7 @@ function label_terminal_with_info()
     fi
     pruned_host=$(echo $HOSTNAME | sed -e 's/^\([^\.]*\)\..*$/\1/')
     date_string=$(date +"%Y %b %e @ %T")
-    user=$USER
+    user=$(logname)
     if [ -z "$user" ]; then
       # try snagging the windoze name.
       user=$USERNAME