1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-18 01:53:22 -07:00

ignore backup files when sourcing from zsh

This commit is contained in:
Connor Olding 2021-10-12 20:23:16 -07:00
parent b2b6b9fa30
commit fe7dff6403

View File

@ -57,7 +57,7 @@ function {
[ -s ~/.sh.sha1 ] && read -r b _ < ~/.sh.sha1
( cd ~/sh \
&& print -l '#!/usr/bin/env false' '[ -n "$preload" ] || exit 1' '' \
| cat - $(grep -lF 'YES_ZSH' *(.)) \
| cat - $(grep -lF 'YES_ZSH' *~*.bak(.)) \
| tee ~/.sh \
) | sha1sum - \
| tee ~/.sh.sha1 \