mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
fish: remove pnpm path, add envsource function
This commit is contained in:
parent
e18bf623f5
commit
9de04a34f1
2 changed files with 7 additions and 1 deletions
|
|
@ -9,7 +9,6 @@ set -g PATH $HOME/.golang/bin $PATH
|
||||||
set -g PATH $HOME/.yarn/bin $PATH
|
set -g PATH $HOME/.yarn/bin $PATH
|
||||||
set -g PATH $HOME/.cargo/bin $PATH
|
set -g PATH $HOME/.cargo/bin $PATH
|
||||||
set -g PATH $HOME/.bun/bin $PATH
|
set -g PATH $HOME/.bun/bin $PATH
|
||||||
set -g PATH $HOME/.local/share/pnpm $PATH
|
|
||||||
|
|
||||||
if status is-interactive
|
if status is-interactive
|
||||||
set fish_greeting
|
set fish_greeting
|
||||||
|
|
|
||||||
7
config/fish/functions/envsource.fish
Normal file
7
config/fish/functions/envsource.fish
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue