Files
dotfiles/fish/files/functions/reload-env.fish

7 lines
175 B
Fish

function reload-env
for line in (grep -v '^#' /etc/environment | grep '=')
set -l pair (string split -m 1 '=' $line)
set -gx $pair[1] $pair[2]
end
end