From e41c17d3eb172d12e739256ceb9fd425f05773a1 Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Tue, 13 Feb 2024 17:52:31 +0000 Subject: [PATCH] [zsh] Added TRAPUSR1 to respawn shell on theme change --- .zshenv | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .zshenv diff --git a/.zshenv b/.zshenv new file mode 100644 index 0000000..a169cd3 --- /dev/null +++ b/.zshenv @@ -0,0 +1,6 @@ +#This is used to reload the instance +TRAPUSR1() { + if [[ -o INTERACTIVE ]]; then + exec "${SHELL}" + fi +}