diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index fce88c796..3eca8e4be 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -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 } \ No newline at end of file