1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

Merge pull request #2744 from docwhat/ostype-not-uname

Use $OSTYPE instead of uname to speed things up
This commit is contained in:
Robby Russell
2014-09-05 21:15:57 +02:00
7 changed files with 7 additions and 7 deletions

View File

@@ -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'