fish: remove pnpm path, add envsource function

This commit is contained in:
Smirnov Oleksandr 2022-08-25 14:52:25 +03:00
parent e18bf623f5
commit 9de04a34f1
2 changed files with 7 additions and 1 deletions

View file

@ -9,7 +9,6 @@ set -g PATH $HOME/.golang/bin $PATH
set -g PATH $HOME/.yarn/bin $PATH
set -g PATH $HOME/.cargo/bin $PATH
set -g PATH $HOME/.bun/bin $PATH
set -g PATH $HOME/.local/share/pnpm $PATH
if status is-interactive
set fish_greeting

View file

@ -0,0 +1,7 @@
function envsource
for line in (cat $argv | grep -v '^#')
set item (string split -m 1 '=' $line)
set -gx $item[1] $item[2]
echo "Exported key $item[1]"
end
end