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

This commit is contained in:
Mike Puntolillo 2016-06-15 17:50:31 -04:00
commit 7f4b4ef62d

View file

@ -5,6 +5,9 @@
# VERSION: 1.1.0
# ------------------------------------------------------------------------------
# Open the current directory in a Finder window
alias ofd='open_command $PWD'
function _omz_osx_get_frontmost_app() {
local the_app=$(
osascript 2>/dev/null <<EOF
@ -151,14 +154,6 @@ 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 ""