mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Modifies ofd to use alias to open_command instead of shell function with AppleScript
This commit is contained in:
parent
d5c76ecf4d
commit
7f4b4ef62d
1 changed files with 3 additions and 8 deletions
|
|
@ -5,6 +5,9 @@
|
||||||
# VERSION: 1.1.0
|
# VERSION: 1.1.0
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Open the current directory in a Finder window
|
||||||
|
alias ofd='open_command $PWD'
|
||||||
|
|
||||||
function _omz_osx_get_frontmost_app() {
|
function _omz_osx_get_frontmost_app() {
|
||||||
local the_app=$(
|
local the_app=$(
|
||||||
osascript 2>/dev/null <<EOF
|
osascript 2>/dev/null <<EOF
|
||||||
|
|
@ -151,14 +154,6 @@ 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…
Add table
Add a link
Reference in a new issue