1
0
Fork 0

xdg-open calls $BROWSER if set and it's not in a "known" DE, use xdg-settings to

set the default browser instead.
pull/79/head
Jeremiah Dodds 13 years ago
parent 97250b23de
commit fe56d59df2

@ -85,8 +85,8 @@ fi
if [[ "$OSTYPE" == darwin* ]]; then if [[ "$OSTYPE" == darwin* ]]; then
export BROWSER='open' export BROWSER='open'
else else
if (( $+commands[xdg-open] )); then if (( $+commands[xdg-settings] )); then
export BROWSER='xdg-open' export BROWSER=$(xdg-settings get default-web-browser 2>/dev/null)
fi fi
fi fi
@ -113,4 +113,3 @@ if zstyle -t ':omz:environment:termcap' color; then
export LESS_TERMCAP_ue=$'\E[0m' # end underline export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[01;32m' # begin underline export LESS_TERMCAP_us=$'\E[01;32m' # begin underline
fi fi

Loading…
Cancel
Save