Prevent launching Xcode if it is not running
This commit is contained in:
parent
9915fe0a92
commit
399c772bee
@ -162,9 +162,11 @@ EOF
|
|||||||
|
|
||||||
function pxd() {
|
function pxd() {
|
||||||
dirname $(osascript 2>/dev/null <<EOF
|
dirname $(osascript 2>/dev/null <<EOF
|
||||||
tell application "Xcode"
|
if application "Xcode" is running then
|
||||||
return path of active workspace document
|
tell application "Xcode"
|
||||||
end tell
|
return path of active workspace document
|
||||||
|
end tell
|
||||||
|
end if
|
||||||
EOF
|
EOF
|
||||||
) 2>/dev/null
|
) 2>/dev/null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user