1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2025-02-04 23:33:23 -08:00

fix issues with loading recombined zsh scripts

This commit is contained in:
Connor Olding 2024-07-30 09:29:21 -07:00
parent de4c5ec593
commit 75d5bee09c

View file

@ -37,9 +37,10 @@ case "$sh" in
exit 1
esac
[ "$SH" != zsh ] || set -o SH_WORD_SPLIT
[ "$SH" != ZSH ] || set -o SH_WORD_SPLIT
printf %s\\n '#!/usr/bin/env false' '[ -n "$preload" ] || exit 1' ''
[ "$SH" != ZSH ] || printf %s\\n 'emulate zsh'
for f in "${HOME:?}/sh"/*; do
[ -n "${f##*.*}" ] && [ -f "$f" ] || continue
i=10 sh=