From b9b40369586e35838339a604a8de54b362b3d739 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 15 Nov 2025 19:48:39 +0000 Subject: [PATCH] Use built-in open_command function for omz shop Co-authored-by: mcornella <1441704+mcornella@users.noreply.github.com> --- lib/cli.zsh | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/cli.zsh b/lib/cli.zsh index 313815375..c62da36af 100644 --- a/lib/cli.zsh +++ b/lib/cli.zsh @@ -729,21 +729,7 @@ function _omz::shop { _omz::log info "Opening Oh My Zsh shop in your browser..." _omz::log info "$shop_url" - # Try to open the URL in a browser - # Check for common commands to open URLs - if (( $+commands[xdg-open] )); then - xdg-open "$shop_url" 2>/dev/null - elif (( $+commands[open] )); then - open "$shop_url" 2>/dev/null - elif (( $+commands[start] )); then - start "$shop_url" 2>/dev/null - elif (( $+commands[cygstart] )); then - cygstart "$shop_url" 2>/dev/null - elif (( $+commands[wslview] )); then - wslview "$shop_url" 2>/dev/null - else - _omz::log info "Please open the URL above in your browser." - fi + open_command "$shop_url" } function _omz::reload {