summaryrefslogtreecommitdiff
path: root/.zsh_functions.file
diff options
context:
space:
mode:
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
+}