mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
merge
This commit is contained in:
parent
a8c56f5231
commit
8274156fae
296 changed files with 6279 additions and 3141 deletions
|
|
@ -17,6 +17,13 @@ function xc {
|
|||
local active_path
|
||||
active_path=${"$(xcode-select -p)"%%/Contents/Developer*}
|
||||
echo "Found ${xcode_files[1]}. Opening with ${active_path}"
|
||||
|
||||
# If Xcode is already opened in another Desk, we need this double call
|
||||
# with -g to open the project window in the current Desk and focus it.
|
||||
# See https://github.com/ohmyzsh/ohmyzsh/issues/10384
|
||||
if command pgrep -q "^Xcode"; then
|
||||
open -g -a "$active_path" "${xcode_files[1]}"
|
||||
fi
|
||||
open -a "$active_path" "${xcode_files[1]}"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue