Only run bashrc in interactive
This commit is contained in:
parent
c4ccd0adec
commit
86c538feb3
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue