mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
This prevents gh auth login from working without an existing open browser
12 lines
509 B
Bash
12 lines
509 B
Bash
echo "Set BROWSER to Omarchy browser launcher for detached terminal URL opens"
|
|
|
|
if [[ -f ~/.config/uwsm/default ]]; then
|
|
if grep -q '^export BROWSER=' ~/.config/uwsm/default; then
|
|
sed -i 's|^export BROWSER=.*|export BROWSER=omarchy-launch-browser|' ~/.config/uwsm/default
|
|
else
|
|
printf '\n# Used by terminal programs (like gh) to open URLs detached from the terminal process tree\nexport BROWSER=omarchy-launch-browser\n' >> ~/.config/uwsm/default
|
|
fi
|
|
else
|
|
omarchy-refresh-config uwsm/default
|
|
fi
|