diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-17 18:30:31 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-17 18:30:31 +1300 |
commit | 2070ffec57756c6a1934e17616fa694dc55d5b2e (patch) | |
tree | c49cc943560da1397a44818036164a965da1a4dc /ksh/kshrc | |
parent | Correct a "local" to "typeset" (diff) | |
download | dotfiles-2070ffec57756c6a1934e17616fa694dc55d5b2e.tar.gz dotfiles-2070ffec57756c6a1934e17616fa694dc55d5b2e.zip |
Resolve a few ksh version differences
Diffstat (limited to 'ksh/kshrc')
-rw-r--r-- | ksh/kshrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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" |