From 1c83265cc8d6f0cb98fc9e3c7c8c6660426a06ed Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 11 Dec 2022 10:23:02 +0900 Subject: zsh: set $BROWSER --- .zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zshrc b/.zshrc index 25512c5..7c3e95a 100644 --- a/.zshrc +++ b/.zshrc @@ -3,6 +3,12 @@ export LANG=ja_JP.UTF-8 export VISUAL=nvim export EDITOR=nvim +if type open >/dev/null 2>&1; then + export BROWSER=open +elif type xdg-open >/dev/null 2>&1; then + export BROWSER=xdg-open +fi + export LSCOLORS=exfxcxdxbxegedabagacad export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30' -- cgit v1.2.3-70-g09d2