summaryrefslogtreecommitdiff
path: root/plugins/web-search
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/web-search')
-rw-r--r--plugins/web-search/web-search.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh
index 8eedb90ee..f056e38e8 100644
--- a/plugins/web-search/web-search.plugin.zsh
+++ b/plugins/web-search/web-search.plugin.zsh
@@ -4,7 +4,7 @@ function web_search() {
# get the open command
local open_cmd
- if [[ $(uname -s) == 'Darwin' ]]; then
+ if [[ "$OSTYPE" = darwin* ]]; then
open_cmd='open'
else
open_cmd='xdg-open'