diff options
author | mssalvatore <mike.s.salvatore@gmail.com> | 2016-06-15 17:17:03 -0400 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-06-15 23:17:03 +0200 |
commit | 623ea2381871d41c788270f75b54cad212de8159 (patch) | |
tree | a45f396b86a39a01fd5c4291451f0e1bf272208e | |
parent | 3f2dd807730e8588c84fb6491d243e51c265f5eb (diff) | |
download | zsh-623ea2381871d41c788270f75b54cad212de8159.tar.gz zsh-623ea2381871d41c788270f75b54cad212de8159.tar.bz2 zsh-623ea2381871d41c788270f75b54cad212de8159.zip |
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
-rw-r--r-- | plugins/osx/osx.plugin.zsh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index c92b6556d..99d66f25e 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -151,6 +151,14 @@ function pfd() { EOF } +function ofd() { + osascript 2>/dev/null <<EOF + tell application "Finder" + open POSIX file "$PWD" + end tell +EOF +} + function pfs() { osascript 2>/dev/null <<EOF set output to "" |