Put flutter into PATH when exists

This commit is contained in:
2019-09-06 22:36:36 +02:00
parent 5a8f4c252e
commit b5d7dbe5e3

10
.bashrc
View File

@@ -83,7 +83,15 @@ if [ -d "$HOME/Android/Sdk" ]; then
export ANDROID_HOME="${ANDROID_SDK_ROOT?}"
PATH+=":$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools"
fi
for extras in "$GOROOT/bin" "$GOPATH/bin" "$HOME/.local/bin" "$HOME/.npm/bin" "$HOME/.pub-cache/bin" /usr/lib/dart/bin; do
for extras in \
"$GOROOT/bin" \
"$GOPATH/bin" \
"$HOME/.local/bin" \
"$HOME/.npm/bin" \
"$HOME/.pub-cache/bin" \
/usr/lib/dart/bin \
"$HOME/pkg/flutter/bin" \
; do
[ -d "$extras" ] && PATH="$extras:$PATH"
done