137a554e48263b1517dced417e36836157f062f5

Author
mssalvatore <mike.s.salvatore@gmail.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Open finder to PWD - part 2 (#5165)

* Modifies ofd to use alias to open_command instead of shell function with AppleScript

Diff

 1diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
 2index 99d66f25e7fe217c7b0a265f950080372890177e..a80b199266a1d6b3cf21c2a38afe20458082efe9 100644
 3--- a/plugins/osx/osx.plugin.zsh
 4+++ b/plugins/osx/osx.plugin.zsh
 5@@ -5,6 +5,9 @@
 6 #       VERSION:  1.1.0
 7 # ------------------------------------------------------------------------------
 8 
 9+# Open the current directory in a Finder window
10+alias ofd='open_command $PWD'
11+
12 function _omz_osx_get_frontmost_app() {
13   local the_app=$(
14     osascript 2>/dev/null <<EOF