mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Fix open on Linux, close #24
This commit is contained in:
parent
1515ff4b25
commit
fd669f22a4
2 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue