From 61f121cb7d2bfcbe123527d2095128d17665637b Mon Sep 17 00:00:00 2001 From: Von Random Date: Wed, 1 Mar 2017 23:02:45 +0300 Subject: [PATCH] disable plugins on testing with older versions --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index fbe01b5..a13c0b1 100644 --- a/bashrc +++ b/bashrc @@ -150,7 +150,7 @@ alias scr='command screen sudo -Es' # }}} # {{{ plugins and traps plugins="${HOME}/.bashplugins" -[[ -r "${plugins}" ]] && . "${plugins}" +[[ -r "${plugins}" && "$BASH_VERSINFO" -ge 4 ]] && . "${plugins}" # we want to see exit code on error (it also has to be the last entry here) trap 'printf "${red}>>${reset} ${bold}exit${reset} ${red}%s${reset}\n" "$?" >&2' ERR