Updated config
This commit is contained in:
parent
557f33c14a
commit
2b10bd8763
5 changed files with 23 additions and 21 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue