diff --git a/modules/programs/bash/default.nix b/modules/programs/bash/default.nix index 0e116ae..542b1e2 100644 --- a/modules/programs/bash/default.nix +++ b/modules/programs/bash/default.nix @@ -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