From 1766986d8efbd59209a9848f5e554f51090394b3 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sun, 11 Dec 2022 15:20:41 +0530 Subject: [PATCH] fish: conf.d/setup: Setup environment variables required by go --- fish/.config/fish/conf.d/setup.fish | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fish/.config/fish/conf.d/setup.fish b/fish/.config/fish/conf.d/setup.fish index b160b41..e5e9831 100644 --- a/fish/.config/fish/conf.d/setup.fish +++ b/fish/.config/fish/conf.d/setup.fish @@ -1,5 +1,5 @@ function __fish_setup_on_tty_login --description "Set up environment on tty login" - for extra_path in ~/.{local,nix-profile,cargo,cabal,ghcup}/bin + for extra_path in ~/.{local,nix-profile,cargo,cabal,ghcup,go}/bin if test -d "$extra_path" set -gxp PATH "$extra_path" end @@ -37,6 +37,11 @@ function __fish_setup_on_tty_login --description "Set up environment on tty logi # Needed for work set -gx ENV qa-tunnel + if test -d {$HOME}/.go + set -gx GOBIN {$HOME}/.go/bin + set -gx GOPATH {$HOME}/.go + end + # Required for all environment variables to be set correctly, especially # in tmux session service. dbus-update-activation-environment --systemd --all