From fa4e7a2bbcabe213d410c4983b6faba8fab05e4a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 17 Dec 2016 18:48:17 +1300 Subject: Move HOSTNAME call into shrc --- sh/shrc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sh/shrc') diff --git a/sh/shrc b/sh/shrc index 6c4eac8b..8bbc5147 100644 --- a/sh/shrc +++ b/sh/shrc @@ -7,6 +7,9 @@ command -p stty -ixon -ctlecho 2>/dev/null # Keep around 4K lines of history in memory HISTSIZE=$((1 << 12)) +# If HOSTNAME isn't set by this shell, we'll do it +[ -n "$HOSTNAME" ] || HOSTNAME=$(uname -n) + # Don't warn me about new mail unset -v MAILCHECK -- cgit v1.2.3