all repos

dotfiles @ 9de04a3

i use rach linux btw
2 files changed, 7 insertions(+), 1 deletions(-)
fish: remove pnpm path, add envsource function
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2022-08-25 14:52:25 +0300
Parent: e18bf62
M config/fish/config.fish
···
                9
                9
                 set -g PATH $HOME/.yarn/bin $PATH

              
                10
                10
                 set -g PATH $HOME/.cargo/bin $PATH

              
                11
                11
                 set -g PATH $HOME/.bun/bin $PATH

              
                12
                
                -set -g PATH $HOME/.local/share/pnpm $PATH

              
                13
                12
                 

              
                14
                13
                 if status is-interactive

              
                15
                14
                   set fish_greeting

              
A config/fish/functions/envsource.fish
···
                
                1
                +function envsource

              
                
                2
                +  for line in (cat $argv | grep -v '^#')

              
                
                3
                +    set item (string split -m 1 '=' $line)

              
                
                4
                +    set -gx $item[1] $item[2]

              
                
                5
                +    echo "Exported key $item[1]"

              
                
                6
                +  end

              
                
                7
                +end