mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
added OS X finder function
This commit is contained in:
parent
dd43a3effc
commit
2bbb2a6a4f
1 changed files with 14 additions and 0 deletions
|
|
@ -8,4 +8,18 @@ function tab() {
|
||||||
do script with command "cd \"$PWD\"; $*" in window 1
|
do script with command "cd \"$PWD\"; $*" in window 1
|
||||||
end tell
|
end tell
|
||||||
EOF
|
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
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue