summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoru <u@billy>2023-05-01 08:05:09 -0400
committeru <u@billy>2023-05-01 08:05:09 -0400
commit79b0dee7daed2f457cb5b56fedbfbe4d5a88ccad (patch)
tree0c2166c162e9d1fc714de5461800399498aac85d
parent54044f48b27865c8616cbfa932eb31142d631d92 (diff)
avoid sourcing .bashrc twice
-rw-r--r--dot/bash_profile10
1 files changed, 8 insertions, 2 deletions
diff --git a/dot/bash_profile b/dot/bash_profile
index 9c34c0e..44b50e0 100644
--- a/dot/bash_profile
+++ b/dot/bash_profile
@@ -1,5 +1,11 @@
1. ~/.profile 1# `.profile` is expected to source `.bashrc`. Source here only as fallback.
2. ~/.bashrc 2if [ -f ~/.profile ]
3then
4 . ~/.profile
5elif [ -f ~/.bashrc ]
6then
7 . ~/.bashrc
8fi
3 9
4if [ "$SHLVL" = 1 ] && [ "$(tty)" = /dev/tty1 ] 10if [ "$SHLVL" = 1 ] && [ "$(tty)" = /dev/tty1 ]
5then 11then