aboutsummaryrefslogtreecommitdiff
path: root/ksh/kshrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-17 18:30:31 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-17 18:30:31 +1300
commit2070ffec57756c6a1934e17616fa694dc55d5b2e (patch)
treec49cc943560da1397a44818036164a965da1a4dc /ksh/kshrc
parent390188a950053239b9499d263399bfab30b84c1f (diff)
downloaddotfiles-2070ffec57756c6a1934e17616fa694dc55d5b2e.tar.gz
dotfiles-2070ffec57756c6a1934e17616fa694dc55d5b2e.zip
Resolve a few ksh version differences
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"