aboutsummaryrefslogtreecommitdiff
path: root/ksh/kshrc
diff options
context:
space:
mode:
Diffstat (limited to 'ksh/kshrc')
-rw-r--r--ksh/kshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ksh/kshrc b/ksh/kshrc
index cf7812d6..c45d4018 100644
--- a/ksh/kshrc
+++ b/ksh/kshrc
@@ -6,6 +6,10 @@ set -o emacs
HISTFILE=$HOME/.ksh_history
HISTSIZE=$((1 << 10))
+# If HOST and HOSTNAME aren't set by this version of ksh, set them
+HOSTNAME=$(uname -n)
+HOST=${HOSTNAME%%.*}
+
# Load any supplementary scripts
for kshrc in "$HOME"/.kshrc.d/*.ksh ; do
[[ -e $kshrc ]] && . "$kshrc"