Raeed Asif
Raeed Asif

Reputation: 23

Issue with $PATH and .bash_profile

So I was installing flutter the other day and somehow I guess I messed a bit with my profile files. The issue i'm facing is that whenever I echo my PATH var it gives me the "I have no idea where did I add these"

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands

while my .bash_profile has the paths added

export PATH=/usr/local/anaconda3/bin:$PATH export JAVA_HOME=$(/usr/libexec/java_home) export PATH="$PATH:/Users/raeedasif/development/flutter/bin"enter image description here

So basically what I'm facing is that when I type echo $PATH it gives me the undesired PATHS while if i use the command ( basically source it )

source ~/.bash_profile

it gives me the desired outcome that is PATHS in picture above, especially the flutter one, please help me fix my profiles on my machine

Thanks every one!

Upvotes: 0

Views: 381

Answers (1)

petrus4
petrus4

Reputation: 614

The first place I would probably check, is /etc/profile, which AFAIK is the system wide default/template profile for bash.

Upvotes: 0

Related Questions