improve interop between zsh and bash

This commit is contained in:
dl92
2025-08-09 23:09:26 +01:00
parent dba6450f86
commit fc632525fd

View File

@@ -3,7 +3,9 @@
# check the window size after each command and, if necessary, # check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS. # update the values of LINES and COLUMNS.
shopt -s checkwinsize if [[ -n "$BASH_VERSION" ]]; then
shopt -s checkwinsize
fi
# If set, the pattern "**" used in a pathname expansion context will # If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories. # match all files and zero or more directories and subdirectories.
@@ -21,7 +23,9 @@ esac
HISTCONTROL=ignoreboth HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it # append to the history file, don't overwrite it
shopt -s histappend if [[ -n "$BASH_VERSION" ]]; then
shopt -s histappend
fi
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000 HISTSIZE=1000