From: Oleg Broytman Date: Wed, 20 Jul 2016 08:00:19 +0000 (+0300) Subject: .shellrc: shopt is bash-specific command X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=4778fb273a0dab8ec26cfa84d82b65989c899205 .shellrc: shopt is bash-specific command --- diff --git a/.shellrc b/.shellrc index 90442e0..7b362b8 100644 --- a/.shellrc +++ b/.shellrc @@ -15,6 +15,7 @@ esac # Stop if non-interactive shell # [ -z "$PS1" ] && return +if test -n "$BASH_VERSION"; then # append to the history file, don't overwrite it shopt -s histappend @@ -25,6 +26,7 @@ shopt -s checkwinsize # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar +fi #if [ -x /usr/bin/dircolors ]; then