mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
feat(console): don't source system-wide bashrc if not exists
This commit is contained in:
parent
b9f06e7727
commit
304993a14e
2 changed files with 6 additions and 2 deletions
4
.bashrc
4
.bashrc
|
|
@ -11,7 +11,9 @@ fi
|
||||||
# Startup & environment:2 ends here
|
# Startup & environment:2 ends here
|
||||||
|
|
||||||
# [[file:Console.org::*Startup & environment][Startup & environment:3]]
|
# [[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
|
# Startup & environment:3 ends here
|
||||||
|
|
||||||
# [[file:Console.org::*Startup & environment][Startup & environment:4]]
|
# [[file:Console.org::*Startup & environment][Startup & environment:4]]
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,9 @@ fi
|
||||||
|
|
||||||
Source the system-wide file
|
Source the system-wide file
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
source /etc/bashrc
|
if [[ -f "/etc/bashrc" ]]; then
|
||||||
|
source /etc/bashrc
|
||||||
|
fi
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
| Guix dependency |
|
| Guix dependency |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue