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:
parent
de4c5ec593
commit
75d5bee09c
1 changed files with 2 additions and 1 deletions
|
@ -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=
|
||||
|
|
Loading…
Add table
Reference in a new issue