summaryrefslogtreecommitdiff
path: root/.zsh_functions.file
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2021-10-22 22:39:06 +0200
committerHendrik Jäger <gitcommit@henk.geekmail.org>2021-10-22 22:39:06 +0200
commit97e0461b3938abc7cf0cff770a87c1f0c90ec507 (patch)
tree0bda3ab96d477e058830e2a4bfeda43457be21df /.zsh_functions.file
parenta9c1c1fb6bc039ffc1dc87b244f7987f7e10aa67 (diff)
autoload functions part 1
Diffstat (limited to '.zsh_functions.file')
-rw-r--r--.zsh_functions.file8
1 files changed, 8 insertions, 0 deletions
diff --git a/.zsh_functions.file b/.zsh_functions.file
new file mode 100644
index 0000000..45e1e79
--- /dev/null
+++ b/.zsh_functions.file
@@ -0,0 +1,8 @@
+function with () {
+ local prefix="$* " str compcontext=normal:normal:_normal
+ while :
+ do
+ str=$prefix
+ vared str && eval $str
+ done
+}