summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zsh_functions/autoreload4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zsh_functions/autoreload b/.zsh_functions/autoreload
new file mode 100644
index 0000000..59d7272
--- /dev/null
+++ b/.zsh_functions/autoreload
@@ -0,0 +1,4 @@
+autoreload () {
+ unfunction - $@
+ autoload -Uz +X - $@
+}