From 7a1b53baaa830e81e80f449a84f9ba2711b6d8b0 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 4 Jan 2022 10:42:33 -0600 Subject: [PATCH] update browser function/alias --- system/alias.sh | 1 + system/custom.sh | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/system/alias.sh b/system/alias.sh index fd54169..335985b 100644 --- a/system/alias.sh +++ b/system/alias.sh @@ -46,4 +46,5 @@ is-executable nvim && alias vim=nvim is-executable gdu && alias gdu -I '.*node_modules' -H # more fzf alias fzf-bat="fzf --preview 'bat --style=numbers --color=always --line-range :500 {}'" +alias vivaldi="vivaldi-stable" ########################################## diff --git a/system/custom.sh b/system/custom.sh index 39f9bc1..e90d36a 100644 --- a/system/custom.sh +++ b/system/custom.sh @@ -1,6 +1,9 @@ # env variables -export BROWSER=/mnt/c/Users/daylin/AppData/Local/Vivaldi/Application/vivaldi.exe - +if ! [ $(cat /etc/hostname)=="thinkpad" ];then + export BROWSER=/mnt/c/Users/daylin/AppData/Local/Vivaldi/Application/vivaldi.exe +else + export BROWSER=vivaldi-stable +fi # aliases alias files=explorer.exe