aboutsummaryrefslogtreecommitdiff
path: root/ksh/kshrc
diff options
context:
space:
mode:
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