added OS X finder function

This commit is contained in:
Sven Lito 2010-10-12 20:11:59 +01:00
commit 2bbb2a6a4f

View file

@ -9,3 +9,17 @@ function tab() {
end tell
EOF
}
# Functions for opening/finding/selecting things in OS X Finder
function finder() {
if [[ $# -eq 0 ]]; then
open $PWD
elif [[ $# -eq 1 ]]; then
open $1
else
for dir in $argv; do
open $dir
done
fi
}