summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCopilot <198982749+Copilot@users.noreply.github.com>2025-11-15 21:00:26 +0100
committerGitHub <noreply@github.com>2025-11-15 21:00:26 +0100
commit8c5a60644a2a93fb6b7d76ec7a5598f99b426cf0 (patch)
treeda49e51f017a6d91c15331862391baa7b5a651cb /lib
parent9d93dfaa60ccc7980ad69b75b1accae0232e4e8f (diff)
downloadzsh-8c5a60644a2a93fb6b7d76ec7a5598f99b426cf0.tar.gz
zsh-8c5a60644a2a93fb6b7d76ec7a5598f99b426cf0.tar.bz2
zsh-8c5a60644a2a93fb6b7d76ec7a5598f99b426cf0.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/cli.zsh11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/cli.zsh b/lib/cli.zsh
index a002a5073..c62da36af 100644
--- a/lib/cli.zsh
+++ b/lib/cli.zsh
@@ -28,6 +28,7 @@ function _omz {
'plugin:Manage plugins'
'pr:Manage Oh My Zsh Pull Requests'
'reload:Reload the current zsh session'
+ 'shop:Open the Oh My Zsh shop'
'theme:Manage themes'
'update:Update Oh My Zsh'
'version:Show the version'
@@ -173,6 +174,7 @@ Available commands:
plugin <command> Manage plugins
pr <command> Manage Oh My Zsh Pull Requests
reload Reload the current zsh session
+ shop Open the Oh My Zsh shop
theme <command> Manage themes
update Update Oh My Zsh
version Show the version
@@ -721,6 +723,15 @@ function _omz::pr::test {
)
}
+function _omz::shop {
+ local shop_url="https://openswag.shop/collections/oh-my-zsh"
+
+ _omz::log info "Opening Oh My Zsh shop in your browser..."
+ _omz::log info "$shop_url"
+
+ open_command "$shop_url"
+}
+
function _omz::reload {
# Delete current completion cache
command rm -f $_comp_dumpfile $ZSH_COMPDUMP