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.zsh7
1 files changed, 7 insertions, 0 deletions
diff --git a/.zsh.before/functions.zsh b/.zsh.before/functions.zsh
index 01bc224..4b2ef1a 100644
--- a/.zsh.before/functions.zsh
+++ b/.zsh.before/functions.zsh
@@ -1,3 +1,10 @@
+# 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