summaryrefslogtreecommitdiff
path: root/functions/autosource
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--functions/autosource10
1 files changed, 10 insertions, 0 deletions
diff --git a/functions/autosource b/functions/autosource
new file mode 100644
index 0000000..12b6bab
--- /dev/null
+++ b/functions/autosource
@@ -0,0 +1,10 @@
+#!/bin/zsh
+local f=
+local p=
+for f
+do
+ for p in $spath
+ do
+ [[ -r $p/$f ]] && . "$p/$f" && break
+ done
+done