[zsh] only capture SIGUSR1 if not a tty
This commit is contained in:
parent
e9d6a16b41
commit
2e8cefb22a
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue