From bdb92d8372acdb50534b0973f167dddbe157a499 Mon Sep 17 00:00:00 2001 From: John Doty Date: Fri, 31 Mar 2023 13:52:31 +0000 Subject: [PATCH 1/2] Add linuxbrew to path --- .config/fish/config.fish | 9 +++++++++ .gitconfig | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 3e83995..d0b03da 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -38,6 +38,15 @@ if test -n "$CODER_WORKSPACE_ID" end end +if test -d /home/linuxbrew/.linuxbrew + set -x HOMEBREW_PREFIX "/home/linuxbrew/.linuxbrew" + set -x HOMEBREW_CELLAR "/home/linuxbrew/.linuxbrew/Cellar" + set -x HOMEBREW_REPOSITORY "/home/linuxbrew/.linuxbrew/Homebrew" + set PATH "/home/linuxbrew/.linuxbrew/bin" "/home/linuxbrew/.linuxbrew/sbin" $PATH + set MANPATH "/home/linuxbrew/.linuxbrew/share/man" $MANPATH + set INFOPATH "/home/linuxbrew/.linuxbrew/share/info" $INFOPATH +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. diff --git a/.gitconfig b/.gitconfig index 3fdab1b..9f7b921 100644 --- a/.gitconfig +++ b/.gitconfig @@ -3,7 +3,7 @@ email = john@d0ty.me [include] - path = .gitconfig.shared + path = .gitconfig.shared [credential "https://github.com"] helper = helper = !/opt/local/bin/gh auth git-credential @@ -14,3 +14,5 @@ helper = !/usr/bin/gh auth git-credential [github] user = DeCarabas +[safe] + directory = /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core From 5f32ec846b28c85f5dba2bbeb816efc8fb56f26c Mon Sep 17 00:00:00 2001 From: John Doty Date: Fri, 31 Mar 2023 13:54:31 +0000 Subject: [PATCH 2/2] Other way of detecting coder --- .config/fish/config.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index d0b03da..5da6f85 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -32,7 +32,7 @@ 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 -n "$CODER_WORKSPACE_ID$CODER" if test -z "$BROWSER" set -x BROWSER "fwd-browse" end