From 304993a14eecf3292ea357a15b2304f4e8f1815b Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Sat, 31 Jul 2021 16:46:08 +0300 Subject: [PATCH] feat(console): don't source system-wide bashrc if not exists --- .bashrc | 4 +++- Console.org | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 7698c37..6ed3c2a 100644 --- a/.bashrc +++ b/.bashrc @@ -11,7 +11,9 @@ fi # Startup & environment:2 ends here # [[file:Console.org::*Startup & environment][Startup & environment:3]] -source /etc/bashrc +if [[ -f "/etc/bashrc" ]]; then + source /etc/bashrc +fi # Startup & environment:3 ends here # [[file:Console.org::*Startup & environment][Startup & environment:4]] diff --git a/Console.org b/Console.org index c8c4fbd..9377117 100644 --- a/Console.org +++ b/Console.org @@ -250,7 +250,9 @@ fi Source the system-wide file #+begin_src bash -source /etc/bashrc +if [[ -f "/etc/bashrc" ]]; then + source /etc/bashrc +fi #+end_src | Guix dependency |