Only run bashrc in interactive

This commit is contained in:
buffet 2021-04-26 15:37:11 +00:00
parent c4ccd0adec
commit 86c538feb3

View file

@ -1,3 +1,6 @@
# exit if not run interactively
[[ $- != *i* ]] && return
shopt -s cdspell checkjobs extglob globstar histappend nocaseglob shopt -s cdspell checkjobs extglob globstar histappend nocaseglob
HISTCONTROL=erasedups:ignorespace HISTCONTROL=erasedups:ignorespace
HISTFILE="$XDG_CACHE_HOME/bash_history" HISTFILE="$XDG_CACHE_HOME/bash_history"