8c5a60644a2a93fb6b7d76ec7a5598f99b426cf0

Author
Copilot <198982749+Copilot@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat: announce OpenSwag and `omz shop` command (#13428)

* Update shop URLs from Planet Argon to OpenSwag and add omz shop command

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: robbyrussell <257+robbyrussell@users.noreply.github.com>
Co-authored-by: mcornella <1441704+mcornella@users.noreply.github.com>

Diff

 1diff --git a/README.md b/README.md
 2index 55bfa0c5a9a1e18a687bfcf8980046d65ebbea79..eaa3fb29ec247c253e90511943e000400b1c99f2 100644
 3--- a/README.md
 4+++ b/README.md
 5@@ -547,7 +547,7 @@ We're on social media:
 6 ## Merchandise
 7 
 8 We have
 9-[stickers, shirts, and coffee mugs available](https://shop.planetargon.com/collections/oh-my-zsh?utm_source=github)
10+[stickers, shirts, and coffee mugs available](https://openswag.shop/collections/oh-my-zsh?utm_source=github)
11 for you to show off your love of Oh My Zsh. Again, you will become the talk of the town!
12 
13 ## License
14diff --git a/lib/cli.zsh b/lib/cli.zsh
15index a002a5073dfd33b25e90537a7970b221dd74d4b0..c62da36af688048feaec8209a59527c18e4afa89 100644
16--- a/lib/cli.zsh
17+++ b/lib/cli.zsh
18@@ -28,6 +28,7 @@ function _omz {
19     'plugin:Manage plugins'
20     'pr:Manage Oh My Zsh Pull Requests'
21     'reload:Reload the current zsh session'
22+    'shop:Open the Oh My Zsh shop'
23     'theme:Manage themes'
24     'update:Update Oh My Zsh'
25     'version:Show the version'
26@@ -173,6 +174,7 @@ Available commands:
27   plugin <command>    Manage plugins
28   pr     <command>    Manage Oh My Zsh Pull Requests
29   reload              Reload the current zsh session
30+  shop                Open the Oh My Zsh shop
31   theme  <command>    Manage themes
32   update              Update Oh My Zsh
33   version             Show the version
34@@ -721,6 +723,15 @@ function _omz::pr::test {
35   )
36 }
37 
38+function _omz::shop {
39+  local shop_url="https://openswag.shop/collections/oh-my-zsh"
40+  
41+  _omz::log info "Opening Oh My Zsh shop in your browser..."
42+  _omz::log info "$shop_url"
43+  
44+  open_command "$shop_url"
45+}
46+
47 function _omz::reload {
48   # Delete current completion cache
49   command rm -f $_comp_dumpfile $ZSH_COMPDUMP
50diff --git a/tools/install.sh b/tools/install.sh
51index 8cf62a76ec4d2432bad2bdf9183fb13d2d607dee..d86550cdd8f7828cbd5d47454dd2da2b866d495e 100755
52--- a/tools/install.sh
53+++ b/tools/install.sh
54@@ -505,7 +505,7 @@ print_success() {
55   printf '\n'
56   printf '%s\n' "• Follow us on X: $(fmt_link @ohmyzsh https://x.com/ohmyzsh)"
57   printf '%s\n' "• Join our Discord community: $(fmt_link "Discord server" https://discord.gg/ohmyzsh)"
58-  printf '%s\n' "• Get stickers, t-shirts, coffee mugs and more: $(fmt_link "Planet Argon Shop" https://shop.planetargon.com/collections/oh-my-zsh)"
59+  printf '%s\n' "• Get stickers, t-shirts, coffee mugs and more: $(fmt_link "OpenSwag Shop" https://openswag.shop/collections/oh-my-zsh)"
60   printf '%s\n' $FMT_RESET
61 }
62 
63diff --git a/tools/upgrade.sh b/tools/upgrade.sh
64index 1aa3d8af47b3747cf59e6d3bda803d7905aa480a..82c0624bca4a7edf1b9b27c4d6c68c2b8cded2c4 100755
65--- a/tools/upgrade.sh
66+++ b/tools/upgrade.sh
67@@ -273,7 +273,7 @@ if LANG= git pull --quiet --rebase $remote $branch; then
68     printf "${BLUE}%s${RESET}\n\n" "$message"
69     printf "${BLUE}${BOLD}%s %s${RESET}\n" "To keep up with the latest news and updates, follow us on X:" "$(fmt_link @ohmyzsh https://x.com/ohmyzsh)"
70     printf "${BLUE}${BOLD}%s %s${RESET}\n" "Want to get involved in the community? Join our Discord:" "$(fmt_link "Discord server" https://discord.gg/ohmyzsh)"
71-    printf "${BLUE}${BOLD}%s %s${RESET}\n" "Get your Oh My Zsh swag at:" "$(fmt_link "Planet Argon Shop" https://shop.planetargon.com/collections/oh-my-zsh)"
72+    printf "${BLUE}${BOLD}%s %s${RESET}\n" "Get your Oh My Zsh swag at:" "$(fmt_link "OpenSwag Shop" https://openswag.shop/collections/oh-my-zsh)"
73   elif [[ $verbose_mode == minimal ]]; then
74     printf "${BLUE}%s${RESET}\n" "$message"
75   fi