summaryrefslogtreecommitdiff
path: root/plugins/xcode/xcode.plugin.zsh
diff options
context:
space:
mode:
authorKyle <43724855+Kyle-Ye@users.noreply.github.com>2021-11-26 06:57:08 +0800
committerGitHub <noreply@github.com>2021-11-25 23:57:08 +0100
commit452ddff763ebbaba40a060006e8290d497e2993a (patch)
tree1d333c3ce04beffd6c814991f01325fb880cd388 /plugins/xcode/xcode.plugin.zsh
parent0314604384529fb535825bf1d93c6fdb3c5ccbbe (diff)
downloadzsh-452ddff763ebbaba40a060006e8290d497e2993a.tar.gz
zsh-452ddff763ebbaba40a060006e8290d497e2993a.tar.bz2
zsh-452ddff763ebbaba40a060006e8290d497e2993a.zip
feat(xcode): support `.swiftpm` as project file in `xc` (#10434)
Diffstat (limited to 'plugins/xcode/xcode.plugin.zsh')
-rw-r--r--plugins/xcode/xcode.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/xcode/xcode.plugin.zsh b/plugins/xcode/xcode.plugin.zsh
index 41b9e37e4..3bd12cdec 100644
--- a/plugins/xcode/xcode.plugin.zsh
+++ b/plugins/xcode/xcode.plugin.zsh
@@ -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