mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-08-09 15:05:16 +02:00
feat(xcode): support .swiftpm
as project file in xc
(#10434)
This commit is contained in:
@ -7,7 +7,7 @@ alias xcsel='sudo xcode-select --switch'
|
||||
# source: https://gist.github.com/subdigital/5420709
|
||||
function xc {
|
||||
local xcode_files
|
||||
xcode_files=(${1:-.}/{*.{xcworkspace,xcodeproj},Package.swift}(N))
|
||||
xcode_files=(${1:-.}/{*.{xcworkspace,xcodeproj,swiftpm},Package.swift}(N))
|
||||
|
||||
if [[ ${#xcode_files} -eq 0 ]]; then
|
||||
echo "No Xcode files found in ${1:-the current directory}." >&2
|
||||
|
Reference in New Issue
Block a user