Updated config

This commit is contained in:
Eduard Urbach 2025-05-18 16:38:24 +02:00
parent 978e460330
commit 52708c6217
Signed by: eduard
GPG key ID: 49226B848C78F6C8
5 changed files with 23 additions and 21 deletions

View file

@ -3,17 +3,19 @@ if status is-interactive
source $HOME/.config/fish/alias.fish
end
# Set environment variables from .env
while read -la line
set -l keyval (string split -m1 "=" $line)
set -l key (string trim $keyval[1])
set -l value (string trim $keyval[2..])
set -l value (eval echo $value)
set -xg $key $value
end < .env
# Add scripts to PATH
fish_add_path $XDG_CONFIG_HOME/fish/scripts
# Add Go binaries to PATH
if command -q go
fish_add_path (go env GOPATH)/bin
end
# Load systemd user environment
set GENERATOR /usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator
if test -e $GENERATOR
export ($GENERATOR)
end