How to fix bash profile on Mac OS?
1 Open your bash_profile by running /usr/bin/vim ~/.bash_profile. (vim ~/.bash_profile will no longer work because the… 2 Get rid of the path you just added that messed everything up. 3 Exit and restart the terminal so that source ~/.bash_profile runs automatically. (Once again it won’t work as is,… More
What to do if your bash profile is not correct?
Exit and restart the terminal so that source ~/.bash_profile runs automatically. (Once again it won’t work as is, because the path is not correct). Open your .bash_profile, go to the line with your error command and put a # before it as first character of the line.
How to run ~ /.bash _ profile from the command line?
To apply it to an existing session, run source ~/.bash_profile. You can run any Bash script this way – think of executing source as the same as typing commands in the Terminal window (from the specified script). More info: How to reload .bash_profile from the command line?
Why does Bash not work on MacBook Pro?
Nothing in Terminal works anymore: Korays-MacBook-Pro:~ koraytugay$ ls -bash: ls: command not found Korays-MacBook-Pro:~ koraytugay$ mkdir test -bash: mkdir: command not found I can not see hidden files in Finder so I can not modify .bash_profile from Finder as well.
What to do when Bash says command not found?
If you can’t find the file in the directory, press Command + Shift + > to show hidden files. Then make correction to the PATH and then save. In the directory on Terminal, type: source .bash_profile. This should resolve the issue.
Where do I find the bash profile in TextEdit?
You should open the .bash_profile in TextEdit. If you can’t find the file in the directory, press Command + Shift + > to show hidden files. Then make correction to the PATH and then save. In the directory on Terminal, type: source .bash_profile.