fish: Check if folders exist before adding to path
This commit is contained in:
parent
e43745c302
commit
41072b5554
1 changed files with 12 additions and 3 deletions
|
@ -1,7 +1,16 @@
|
|||
#!/usr/bin/fish
|
||||
set PATH $HOME/.yarn/bin $HOME/.local/bin $HOME/.cargo/bin $HOME/Android/Sdk/platform-tools $PATH
|
||||
set PATH /opt/flutter/bin /opt/dart-sdk-dev/bin $PATH
|
||||
set IDF_PATH $HOME/Documents/Personal/esp-idf-v3.0.1
|
||||
if [ -e $HOME/.yarn/bin ]
|
||||
set PATH $HOME/.yarn/bin $PATH
|
||||
end
|
||||
|
||||
if [ -e $HOME/.local/bin ]
|
||||
set PATH $HOME/.local/bin $PATH
|
||||
end
|
||||
|
||||
if [ -e $HOME/Android/Sdk ]
|
||||
set PATH $HOME/Android/Sdk/platform-tools $PATH
|
||||
end
|
||||
|
||||
set EDITOR nvim
|
||||
|
||||
alias vim nvim
|
||||
|
|
Loading…
Reference in a new issue