mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
bash: do not evaluate /etc/bashrc on non-interactive shells
This commit is contained in:
parent
5fa894c90a
commit
b82bc64a0e
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,9 @@ in
|
|||
# /etc/bashrc: DO NOT EDIT -- this file has been generated automatically.
|
||||
# This file is read for interactive shells.
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# Make bash check its window size after a process completes
|
||||
shopt -s checkwinsize
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue