From 4778fb273a0dab8ec26cfa84d82b65989c899205 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 20 Jul 2016 11:00:19 +0300 Subject: [PATCH] .shellrc: shopt is bash-specific command --- .shellrc | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.2