diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv index 661f7d7..cf54b27 100644 --- a/.config/zsh/.zshenv +++ b/.config/zsh/.zshenv @@ -1,10 +1,11 @@ #This is used to reload the instance -TRAPUSR1() { - if [[ -o INTERACTIVE ]]; then - exec "${SHELL}" - fi +if [[ ! $(tty) =~ ^/dev/tty[0-9]*$ ]]; then + TRAPUSR1() { + if [[ -o INTERACTIVE ]]; then + exec "${SHELL}" + fi } - +fi # Add exports if [[ $(uname) == "Darwin" ]]; then