fish: conf.d/setup: Setup environment variables required by go

This commit is contained in:
Sanchayan Maity 2022-12-11 15:20:41 +05:30
parent 01fb124a49
commit 1766986d8e

View file

@ -1,5 +1,5 @@
function __fish_setup_on_tty_login --description "Set up environment on tty login" 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" if test -d "$extra_path"
set -gxp PATH "$extra_path" set -gxp PATH "$extra_path"
end end
@ -37,6 +37,11 @@ function __fish_setup_on_tty_login --description "Set up environment on tty logi
# Needed for work # Needed for work
set -gx ENV qa-tunnel 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 # Required for all environment variables to be set correctly, especially
# in tmux session service. # in tmux session service.
dbus-update-activation-environment --systemd --all dbus-update-activation-environment --systemd --all