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 e157a389d..371e3a303 100644
--- a/plugins/web-search/web-search.plugin.zsh
+++ b/plugins/web-search/web-search.plugin.zsh
@@ -3,7 +3,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'