mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Prevent launching Xcode if it is not running
This commit is contained in:
parent
9915fe0a92
commit
399c772bee
1 changed files with 5 additions and 3 deletions
|
|
@ -162,9 +162,11 @@ EOF
|
|||
|
||||
function pxd() {
|
||||
dirname $(osascript 2>/dev/null <<EOF
|
||||
tell application "Xcode"
|
||||
return path of active workspace document
|
||||
end tell
|
||||
if application "Xcode" is running then
|
||||
tell application "Xcode"
|
||||
return path of active workspace document
|
||||
end tell
|
||||
end if
|
||||
EOF
|
||||
) 2>/dev/null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue