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 #This is used to reload the instance
TRAPUSR1() { if [[ ! $(tty) =~ ^/dev/tty[0-9]*$ ]]; then
if [[ -o INTERACTIVE ]]; then TRAPUSR1() {
exec "${SHELL}" if [[ -o INTERACTIVE ]]; then
fi exec "${SHELL}"
fi
} }
fi
# Add exports # Add exports
if [[ $(uname) == "Darwin" ]]; then if [[ $(uname) == "Darwin" ]]; then