From fc632525fddc280eaa4ef8b72ee04ee4fe31e602 Mon Sep 17 00:00:00 2001 From: dl92 Date: Sat, 9 Aug 2025 23:09:26 +0100 Subject: [PATCH] improve interop between zsh and bash --- home/bash-config/bashrc.local | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home/bash-config/bashrc.local b/home/bash-config/bashrc.local index 19b7be4..5597e38 100644 --- a/home/bash-config/bashrc.local +++ b/home/bash-config/bashrc.local @@ -3,7 +3,9 @@ # check the window size after each command and, if necessary, # 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 # match all files and zero or more directories and subdirectories. @@ -21,7 +23,9 @@ esac HISTCONTROL=ignoreboth # 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) HISTSIZE=1000