Skip to content

Commit

Permalink
added mdhere function, moved mdloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Kerley committed Aug 26, 2008
1 parent 0f62d52 commit 7636102
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 0 additions & 4 deletions 05_editor
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,4 @@ if [[ $OSTYPE[1,6] == "darwin" ]]; then
ps pdf html dmg; do
alias -s $s=open
done
# Add filename-only alias for mdfind
function mdloc () {
mdfind "kMDItemFSName == '$*'wc"
}
fi
8 changes: 8 additions & 0 deletions 06_finding
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if [[ -x `which mdfind` ]]; then
function mdhere() {
mdfind -onlyin . $*
}
function mdloc () {
mdfind "kMDItemFSName == '$*'wc"
}
fi

0 comments on commit 7636102

Please sign in to comment.