From 37233f6c0e11c8ab29b91ae1eeb7fd5595cc26d9 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 6 Jan 2017 16:22:51 +1300 Subject: Add a couple of ksh options --- ksh/kshrc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'ksh/kshrc') diff --git a/ksh/kshrc b/ksh/kshrc index cf7812d6..934156d1 100644 --- a/ksh/kshrc +++ b/ksh/kshrc @@ -1,7 +1,18 @@ -# Emacs-style key bindings +# Emacs-style key bindings; these are present in ksh88 and pdksh set -o braceexpand set -o emacs +# Use subshells to test these newer options, as ksh93 seems to get very upset +# if you try to set an option and it doesn't exist + +# Try to get "**" as a recursive glob +(set -o globstar) 2>/dev/null && + set -o globstar + +# Try to get !-style history expansion +(set -o histexpand) 2>/dev/null && + set -o histexpand + # Save history HISTFILE=$HOME/.ksh_history HISTSIZE=$((1 << 10)) -- cgit v1.2.3