From 660940c643fc81bcf81328267632f1618b7610ff Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 24 Jun 2025 19:20:22 -0500 Subject: [PATCH] add WSL specific settings block to commonrc, add BROWSER url opening fix --- home/.chezmoitemplates/scripts/commonrc.sh.tmpl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home/.chezmoitemplates/scripts/commonrc.sh.tmpl b/home/.chezmoitemplates/scripts/commonrc.sh.tmpl index 5285ea7..6daac78 100644 --- a/home/.chezmoitemplates/scripts/commonrc.sh.tmpl +++ b/home/.chezmoitemplates/scripts/commonrc.sh.tmpl @@ -105,6 +105,14 @@ fi # load aliases (note: omz aliases are supposed to be placed in ZSH_CUSTOM?) . $HOME/.bash_aliases + +{{- /* WSL-specific settings */ -}} +{{- if .data.wsl }} + +## Ensures CLI apps open URLs in the default Windows browser (Chrome/Firefox/etc) instead of a CLI browser +export BROWSER='powershell.exe /c start' +{{- end }} + # disable screen blanking # source $(brew --prefix)/share/zsh/site-functions/_todoist_peco # xset s off && xset -dpms