Skip to content

Commit c85e65f

Browse files
rkingrking@sharpsaw.org
authored and
rking@sharpsaw.org
committed
Include guards for all ~/.*'s
1 parent a00e296 commit c85e65f

File tree

6 files changed

+19
-4
lines changed

6 files changed

+19
-4
lines changed

.bash_profile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
[[ -z $already_looped_bash_profiles ]] || return
2+
already_looped_bash_profiles=1
3+
14
source ~/.../lib/basics
25
# Get ~/.../src/your-dots/.bash_profile, etc.
3-
...quieteach ...sourceif .bash_profile
6+
...eachsource .bash_profile
47

58
...sourceif ~/.bashrc

.bashrc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
source ~/.../lib/assert-decent-shell || return
2+
[[ -z $already_looped_bashrcs ]] || return
3+
already_looped_bashrcs=1
24

35
source ~/.../lib/basics
46

57
...sourcedircontents ~/.sh # Common with zsh
68
...sourcedircontents ~/.bash
79

810
# Get ~/.../src/your-dots/.bashrc, etc.
9-
...quieteach ...sourceif .bashrc
10-
11-
11+
...eachsource .bashrc
1212

1313
# XXX
1414
# The stuff below needs to be deprecated and eventually removed. I(ngy) am

.zlogin

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[[ -z $already_looped_zlogins ]] || return
2+
already_looped_zlogins=1
3+
14
source ~/.../lib/tracefuncs
25
...filestart .zlogin
36
source ~/.../lib/scripting

.zprofile

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[[ -z $already_looped_zprofile ]] || return
2+
already_looped_zprofile=1
3+
14
source ~/.../lib/tracefuncs
25
...filestart .zprofile
36
source ~/.../lib/scripting

.zshenv

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[[ -z $already_looped_zshenvs ]] || return
2+
already_looped_zshenvs=1
3+
14
source ~/.../lib/tracefuncs
25
...filestart .zshenv
36
source ~/.../lib/basics

.zshrc

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[[ -z $already_looped_zshrcs ]] || return
2+
already_looped_zshrcs=1
3+
14
...filestart .zshrc
25
...sourcedircontents ~/.sh # Common with bash
36
fpath+=(~/.zsh/func); autoload -U ~/.zsh/func/*(:t)

0 commit comments

Comments
 (0)