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"
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