mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 21:51:05 +01:00
Add ofd() to OSX plugin to open finder on current directory (#5164)
* Add ofd() to OSX plugin to open finder on current directory * Change `pwd` to $PWD in osx.plugin.zsh Suggested by mcornella
This commit is contained in:
parent
3f2dd80773
commit
623ea23818
1 changed files with 8 additions and 0 deletions
|
@ -151,6 +151,14 @@ function pfd() {
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ofd() {
|
||||||
|
osascript 2>/dev/null <<EOF
|
||||||
|
tell application "Finder"
|
||||||
|
open POSIX file "$PWD"
|
||||||
|
end tell
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
function pfs() {
|
function pfs() {
|
||||||
osascript 2>/dev/null <<EOF
|
osascript 2>/dev/null <<EOF
|
||||||
set output to ""
|
set output to ""
|
||||||
|
|
Loading…
Reference in a new issue