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