From 86c538feb398ac6c4fb2d5c80102ac0f8e3fc0d3 Mon Sep 17 00:00:00 2001 From: buffet Date: Mon, 26 Apr 2021 15:37:11 +0000 Subject: [PATCH] Only run bashrc in interactive --- bash/.bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bash/.bashrc b/bash/.bashrc index cb8b14f..fcf57d8 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -1,3 +1,6 @@ +# exit if not run interactively +[[ $- != *i* ]] && return + shopt -s cdspell checkjobs extglob globstar histappend nocaseglob HISTCONTROL=erasedups:ignorespace HISTFILE="$XDG_CACHE_HOME/bash_history"