]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/commitdiff
add: function for reloading autoloaded functions
authorHendrik Jäger <gitcommit@henk.geekmail.org>
Thu, 29 Dec 2022 09:10:18 +0000 (10:10 +0100)
committerHendrik Jäger <gitcommit@henk.geekmail.org>
Thu, 29 Dec 2022 09:10:18 +0000 (10:10 +0100)
.zsh_functions/autoreload [new file with mode: 0644]

diff --git a/.zsh_functions/autoreload b/.zsh_functions/autoreload
new file mode 100644 (file)
index 0000000..59d7272
--- /dev/null
@@ -0,0 +1,4 @@
+autoreload () {
+       unfunction - $@
+       autoload -Uz +X - $@
+}