mirror of
https://github.com/notwa/rc
synced 2025-03-14 22:12:50 -07:00
add some much-needed comments about .sh
This commit is contained in:
parent
747a56a9b0
commit
a00a4a057f
2 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,8 @@ alias pl="printf '%s\n'"
|
|||
ADDPATH "$HOME/sh"
|
||||
|
||||
(
|
||||
# combine everything matching "YES_BASH" in ~/sh/ into ~/.sh-bash.
|
||||
# unlike zsh, we do not check the sha1sum of the output.
|
||||
cd ~/sh \
|
||||
&& printf "%s\n" '#!/usr/bin/env false' '[ -n "$preload" ] || exit 1' '' \
|
||||
| cat - $(grep -lF 'YES_BASH' $(find ~/sh -maxdepth 1 -type f)) \
|
||||
|
|
|
@ -49,6 +49,8 @@ zmodload zsh/mathfunc
|
|||
function {
|
||||
local a b
|
||||
|
||||
# combine everything matching "YES_ZSH" in ~/sh/ into ~/.sh,
|
||||
# but only recompile the output if the sha1sum has changed.
|
||||
[ -s ~/.sh.sha1 ] && read -r b _ < ~/.sh.sha1
|
||||
( cd ~/sh \
|
||||
&& print -l '#!/usr/bin/env false' '[ -n "$preload" ] || exit 1' '' \
|
||||
|
|
Loading…
Add table
Reference in a new issue