Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

.aliases: Add `map`

Ref. #157.
  • Loading branch information...
commit 5400992ced5746627b9cfec9df08a93318822acc 1 parent 9e4f9a8
@porada porada authored committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 .aliases
View
5 .aliases
@@ -116,6 +116,11 @@ alias plistbuddy="/usr/libexec/PlistBuddy"
# (useful when executing time-consuming commands)
alias badge="tput bel"
+# Intuitive map function
+# For example, to list all directories that contain a certain file:
+# find . -name .gitattributes | map dirname
+alias map="xargs -n1"
+
# One of @janmoesen’s ProTip™s
for method in GET HEAD POST PUT DELETE TRACE OPTIONS; do
alias "$method"="lwp-request -m '$method'"
Please sign in to comment.
Something went wrong with that request. Please try again.