diff options
| -rw-r--r-- | mkshrc | 20 | ||||
| -rw-r--r-- | shell/conf | 20 |
2 files changed, 20 insertions, 20 deletions
@@ -598,6 +598,9 @@ if [ -e "$PRELOAD" ] ; then fi set_pager + +# note that the use of set_editor and _set_editor on oksh may +# change the input mode. ( set -o emacs ) after to go back set_editor # set_go @@ -609,19 +612,16 @@ setsudoaliases # checkSSHAgent -# Nasty conditional for support of many different shells -if - [ -n "$KSH_VERSION" ] || - [ "$SHELL" = "/bin/ksh" ] || - [ "$SHELL" = "/bin/mksh" ] || - [ "$SHELL" = "/usr/bin/mksh" ] || - [ "$SHELL" = "/usr/local/bin/mksh" ] -then +# Support various different shells +if [ -n "$KSH_VERSION" ] ; then export HISTFILE="$HOME/.ksh_history" + export HISTSIZE=10000 + set -o emacs bind ^L=clear-screen #shellcheck disable=SC2155 - export PS1="$(whoami)@$(hostname) \$PWD \$ " + # export PS1="$(whoami)@$(hostname) \$PWD \$ " + export PS1="$(whoami)@$(hostname)\$ " elif [ "$SHELL" = "/bin/sh" ] && [ "$(uname)" = "FreeBSD" ] ; then set -o emacs #shellcheck disable=SC2155 @@ -631,7 +631,7 @@ elif [ -n "$BASH" ] ; then HISTSIZE=10000 HISTFILESIZE=10000 shopt -s histappend - export PROMPT_COMMAND="set_my_title;history -a; history -c; history -r" + export PROMPT_COMMAND="history -a; history -c; history -r" fi if [ $COLOR -eq 1 ] ; then @@ -26,6 +26,9 @@ if [ -e "$PRELOAD" ] ; then fi set_pager + +# note that the use of set_editor and _set_editor on oksh may +# change the input mode. ( set -o emacs ) after to go back set_editor # set_go @@ -37,19 +40,16 @@ setsudoaliases # checkSSHAgent -# Nasty conditional for support of many different shells -if - [ -n "$KSH_VERSION" ] || - [ "$SHELL" = "/bin/ksh" ] || - [ "$SHELL" = "/bin/mksh" ] || - [ "$SHELL" = "/usr/bin/mksh" ] || - [ "$SHELL" = "/usr/local/bin/mksh" ] -then +# Support various different shells +if [ -n "$KSH_VERSION" ] ; then export HISTFILE="$HOME/.ksh_history" + export HISTSIZE=10000 + set -o emacs bind ^L=clear-screen #shellcheck disable=SC2155 - export PS1="$(whoami)@$(hostname) \$PWD \$ " + # export PS1="$(whoami)@$(hostname) \$PWD \$ " + export PS1="$(whoami)@$(hostname)\$ " elif [ "$SHELL" = "/bin/sh" ] && [ "$(uname)" = "FreeBSD" ] ; then set -o emacs #shellcheck disable=SC2155 @@ -59,7 +59,7 @@ elif [ -n "$BASH" ] ; then HISTSIZE=10000 HISTFILESIZE=10000 shopt -s histappend - export PROMPT_COMMAND="set_my_title;history -a; history -c; history -r" + export PROMPT_COMMAND="history -a; history -c; history -r" fi if [ $COLOR -eq 1 ] ; then |
