Permalink
Browse files

Add each-file.

  • Loading branch information...
1 parent a603439 commit f842a36d696f7861838d2e5b5f2ae98089cbcdaf @paulmillr committed Apr 13, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 zshrc.sh
View
@@ -1,7 +1,7 @@
#!/usr/bin/env zsh
# Profiler.
-zmodload zsh/zprof
+# zmodload zsh/zprof
#
# Sets Oh My Zsh options.
@@ -51,6 +51,12 @@ colors
export EDITOR="/usr/local/bin/mate -w"
alias rm=trash
+function each-file() {
+ for file in *; do
+ $1 $file
+ done
+}
+
# Count code lines in some directory.
# Example usage: `loc .py .js .css`
function loc() {
@@ -122,4 +128,4 @@ function convert_tags() {
}
# Profiler end.
-zprof
+# zprof

0 comments on commit f842a36

Please sign in to comment.