aboutsummaryrefslogtreecommitdiffstats
path: root/.zsh.before/functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to '.zsh.before/functions.zsh')
-rw-r--r--.zsh.before/functions.zsh11
1 files changed, 11 insertions, 0 deletions
diff --git a/.zsh.before/functions.zsh b/.zsh.before/functions.zsh
new file mode 100644
index 0000000..4b2ef1a
--- /dev/null
+++ b/.zsh.before/functions.zsh
@@ -0,0 +1,11 @@
+# Functions
+#
+# (f)ind by (n)ame
+# usage: fn foo
+# to find all files containing 'foo' in the name
+function fn() { ls **/*$1* }
+
+if [ -e $HOME/bin/functions.sh ]
+then
+ . $HOME/bin/functions.sh
+fi