How to fix bash_profile/PATH not working in OS X Catalina Terminal by using zshrc instead
ฝัง
- เผยแพร่เมื่อ 8 ก.ย. 2024
- A short walkthrough of how to install and setup command-line software (Python, node.js, Ruby, etc) that uses the ~/.bash_profile setup file. It doesn’t exist any more in OS X Catalina thanks to using Z shell, so you’ll want to use ~/.zshrc instead.
References:
/ bash-vs-z-shell-a-tale...
ohmyz.sh/
github.com/ohm...
The URLs mentioning bash_profile:
stackoverflow....
zwbetz.com/dow...
stackoverflow....
github.com/pye...
Thanks for this. Honestly. Feels like there aren't good resources that clearly lay out zsh and all its inner workings...until now! Look forward to the rest!
Very very very much thank you for this, Jonathan. This video was my final solution of 2 days trying to solve this problem...
Finally found the fix through this video. Thanks
Thankyou this helped!
Excelente explicación; es la mejor que he encontrado. Thank you so much
Thank you so much!!! Subscribed All the way 💯👍
Thank You So Much :-)
Solid explanation and you have good humor... SUBBED
Thanks for this amazing info!
Finally this was the issue!! . Thanks man great stuff.
You're a lifesaver brother! SUBSCRIBING!!!
you saved my day, Thank you!!
Thank you
I used to run source ~/.bash_profile all the time to refresh my bash_profile file, and now the hustle is no more. Thanks so much
Finally found how to “code”, thank you so much
Very Helpful
I am new to Mac and thought it was always a zsh so I didn't bother to change any other file when told to change bash_profile. And I spent a lot of time figuring out why my env vars aren't working. Thanks a lot!
It's crazy how many instructions online need to be changed, and will not be changed, and how many people will be in your shoes!
I didn't have a .zshrc file instead I have .zprofile where I added my vars
Solution: change shell to Bash, open terminal and type: chsh -s /bin/bash
Thanks buddy I was searching for this.
Thanks!
I love you Bro
Thankyou so much!!
I screwed up my path and have multiple installs of git, node, and I can’t find my zhsrc file. Any recommendations on where to find solution?
Why my .zshrc file is readonly? I could not modify it. Many thanks.
why do I get an empty file when using "code ~/.zshrc" command on terminal? I am using macOS big sur. Any idea?
same problem here
command code not exists here. how do i fix that?
I keep getting a “command not found: code” line, I came here because I was trying to find a file in a directory which it wasn’t detecting, so I looked up how to fix that and ended up getting the explanation that Zshell’s path is messed up and I can’t for the life of me find a fix. Any ideas/help?
I think you can actually set that up from inside of vscode! Try this: code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line
Totally unnecessary change, zsh is the same sh*t as bash but more complicated
Jhhhbm
Get to the point dude!
🎻
thank you so much!! :-)