summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-06-23 11:44:04 -0500
committerToby Vincent <tobyv13@gmail.com>2023-06-23 11:45:28 -0500
commita95c17fbf7d1ad423bdcf49181076a638344b68c (patch)
tree567b22901b83de1c8e2e8e88222e2baa859b1aca
parentbc8c8d0a77a05f25db1099ee5f2995e923d48e8b (diff)
feat(zsh): add zsh rehash on SIGUSR1
-rw-r--r--zsh/.config/zsh/.zshrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index 13e65dc..f113d91 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -26,6 +26,8 @@ setopt NONOMATCH
setopt CORRECT
setopt INTERACTIVE_COMMENTS
+TRAPUSR1() { rehash }
+
bindkey -v
bindkey -m 2>/dev/null