diff options
author | Robby Russell <robby@planetargon.com> | 2014-09-05 21:15:57 +0200 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-09-05 21:15:57 +0200 |
commit | 4bba11dbefbb96441e28221d322df07e737239a2 (patch) | |
tree | a1b45296910a2b512ecfc9247f793e9f6e87cb0f /plugins/web-search | |
parent | ffe8ce5b1e2641a4ebdf157310f77486a6a97013 (diff) | |
parent | 63bae2aba9c43a70bbb374fc46e287d7bc46cc54 (diff) | |
download | zsh-4bba11dbefbb96441e28221d322df07e737239a2.tar.gz zsh-4bba11dbefbb96441e28221d322df07e737239a2.tar.bz2 zsh-4bba11dbefbb96441e28221d322df07e737239a2.zip |
Merge pull request #2744 from docwhat/ostype-not-uname
Use $OSTYPE instead of uname to speed things up
Diffstat (limited to 'plugins/web-search')
-rw-r--r-- | plugins/web-search/web-search.plugin.zsh | 2 |
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' |