Fix open on Linux, close #24

This commit is contained in:
Sorin Ionescu 2012-03-12 19:49:46 -04:00
commit fd669f22a4
2 changed files with 10 additions and 10 deletions

View file

@ -76,12 +76,12 @@ if zstyle -t ':omz:environment:grep' color; then
fi
# Browser (Default)
if (( $+commands[xdg-open] )); then
export BROWSER='xdg-open'
fi
if (( $+commands[open] )); then
if [[ "$OSTYPE" == darwin* ]]; then
export BROWSER='open'
else
if (( $+commands[xdg-open] )); then
export BROWSER='xdg-open'
fi
fi
# Less