chore(zsh): only capture SIGUSR1 if not a tty

This commit is contained in:
2024-10-05 13:09:33 +01:00
parent 3ea71dc91d
commit b3386d4f46

View File

@@ -1,10 +1,11 @@
#This is used to reload the instance
TRAPUSR1() {
if [[ ! $(tty) =~ ^/dev/tty[0-9]*$ ]]; then
TRAPUSR1() {
if [[ -o INTERACTIVE ]]; then
exec "${SHELL}"
fi
}
fi
# Add exports
if [[ $(uname) == "Darwin" ]]; then