chore(zsh): only capture SIGUSR1 if not a tty
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#This is used to reload the instance
|
||||
if [[ ! $(tty) =~ ^/dev/tty[0-9]*$ ]]; then
|
||||
TRAPUSR1() {
|
||||
if [[ -o INTERACTIVE ]]; then
|
||||
exec "${SHELL}"
|
||||
fi
|
||||
}
|
||||
|
||||
fi
|
||||
|
||||
# Add exports
|
||||
if [[ $(uname) == "Darwin" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user