From 3bd6e5f348caf4c8cd6345515745850912e9a6dd Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 3 Jan 2023 21:50:28 +0000 Subject: [PATCH] fwd-browse --- .config/fish/config.fish | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 7928def..3e83995 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -32,6 +32,12 @@ if test -d $HOME/Library/Python/3.10/bin set PATH $PATH $HOME/Library/Python/3.10/bin end +if test -n "$CODER_WORKSPACE_ID" + if test -z "$BROWSER" + set -x BROWSER "fwd-browse" + end +end + if [ -n "$INSIDE_EMACS" ] # This is here to make emacs and ansi-term work properly; I'm not *quite* # sure what it does but it's probably cool. @@ -39,8 +45,8 @@ if [ -n "$INSIDE_EMACS" ] true end - # emacs dir tracking - function prompt_AnSiT -e fish_prompt + # emacs dir tracking + function prompt_AnSiT -e fish_prompt printf "\eAnSiTc %s\n" "$PWD" end printf "\eAnSiTu %s\n" "$USER"