feat(console): don't source system-wide bashrc if not exists

This commit is contained in:
Pavel Korytov 2021-07-31 16:46:08 +03:00
parent b9f06e7727
commit 304993a14e
2 changed files with 6 additions and 2 deletions

View file

@ -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]]

View file

@ -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 |