mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-07 15:20:22 +00:00
8 lines
254 B
Fish
8 lines
254 B
Fish
# Return the path of the frontmost Finder window
|
|
|
|
function pfd -d "Return the path of the frontmost Finder window"
|
|
osascript 2>/dev/null -e '
|
|
tell application "Finder"
|
|
return POSIX path of (target of window 1 as alias)
|
|
end tell'
|
|
end |