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
Diff
1diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
2index c92b6556daa4f7b539dcf294fd5d9446992a7bde..99d66f25e7fe217c7b0a265f950080372890177e 100644
3--- a/plugins/osx/osx.plugin.zsh
4+++ b/plugins/osx/osx.plugin.zsh
5@@ -151,6 +151,14 @@ function pfd() {
6 EOF
7 }
8 9+function ofd() {
10+ osascript 2>/dev/null <<EOF
11+ tell application "Finder"
12+ open POSIX file "$PWD"
13+ end tell
14+EOF
15+}
16+
17 function pfs() {
18 osascript 2>/dev/null <<EOF
19 set output to ""