added OS X finder function

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

View file

@ -8,4 +8,18 @@ function tab() {
do script with command "cd \"$PWD\"; $*" in window 1
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
}