Skip to content

Commit 4d36a22

Browse files
rkingrking@sharpsaw.org
authored and
rking@sharpsaw.org
committed
Moving to an autoloaded functions model.
1 parent 3fb3fce commit 4d36a22

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/bin/zsh
2-
...toggle_zsh_init_echos() {(
1+
(
32
set -xe
43
[ -d ~/.zsh ]
54
subdirs=(.zsh/env .zsh/profile .sh .zsh/rc .zsh/login)
@@ -9,7 +8,7 @@
98
done
109
else
1110
for n in $subdirs; do
12-
echo 'echo "+ In $0"' >| ~/$n/_echo
11+
echo 'echo "+ In $n"' >| ~/$n/_echo || true
1312
done
1413
fi
15-
)}
14+
)

.zshrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
...filestart .zshrc
22
...sourcedircontents ~/.sh # Common with bash
3+
fpath+=(~/.zsh/func); autoload -U ~/.zsh/func/*(:t)
34
...eachsource .zshrc
45
...sourcedircontents ~/.zsh/rc
56
...fileend .zshrc

0 commit comments

Comments
 (0)