aboutsummaryrefslogtreecommitdiff
path: root/ksh/kshrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-17 17:46:15 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-17 17:53:22 +1300
commit700ac112a3dd2041de5fc2a6abd3781103c704a8 (patch)
tree91c0a928697f6ddef11312b95d391b5c9afbb5e4 /ksh/kshrc
parentc0ddb0f83f6a8c5bb77880323261b7d6fe06e4cc (diff)
downloaddotfiles-700ac112a3dd2041de5fc2a6abd3781103c704a8.tar.gz
dotfiles-700ac112a3dd2041de5fc2a6abd3781103c704a8.zip
Rename all pdksh stuff to ksh
As part of a foray into more active use of ksh and derivatives.
Diffstat (limited to 'ksh/kshrc')
-rw-r--r--ksh/kshrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/ksh/kshrc b/ksh/kshrc
new file mode 100644
index 00000000..cf7812d6
--- /dev/null
+++ b/ksh/kshrc
@@ -0,0 +1,13 @@
+# Emacs-style key bindings
+set -o braceexpand
+set -o emacs
+
+# Save history
+HISTFILE=$HOME/.ksh_history
+HISTSIZE=$((1 << 10))
+
+# Load any supplementary scripts
+for kshrc in "$HOME"/.kshrc.d/*.ksh ; do
+ [[ -e $kshrc ]] && . "$kshrc"
+done
+unset -v kshrc