diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-09-04 10:56:48 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-09-04 10:56:48 -0400 |
| commit | 319ac2aec7787ae500eb3ff84020b7ca3e149298 (patch) | |
| tree | 2ecd882dfbc3f7a715149a719c435ce3dda38eb7 /shell/conf | |
| parent | f6341a61fe3e17719fc53f62245ef371b92a4b93 (diff) | |
| download | dotfiles-319ac2aec7787ae500eb3ff84020b7ca3e149298.tar.gz dotfiles-319ac2aec7787ae500eb3ff84020b7ca3e149298.tar.xz | |
Remove title setting from bash prompt command. Tweak KSH support to play nice with oksh
Diffstat (limited to 'shell/conf')
| -rw-r--r-- | shell/conf | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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 |
