fish: Check if folders exist before adding to path

This commit is contained in:
Sijmen 2018-11-25 22:10:16 +01:00
parent e43745c302
commit 41072b5554

View file

@ -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