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

ความคิดเห็น • 39

  • @powars81
    @powars81 4 ปีที่แล้ว +4

    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!

  • @erlynlebron5577
    @erlynlebron5577 3 ปีที่แล้ว +1

    Very very very much thank you for this, Jonathan. This video was my final solution of 2 days trying to solve this problem...

  • @shayng9090
    @shayng9090 2 ปีที่แล้ว

    Finally found the fix through this video. Thanks

  • @ANJALITHAKUR-ee1jb
    @ANJALITHAKUR-ee1jb 4 หลายเดือนก่อน

    Thankyou this helped!

  • @giovanniborda6362
    @giovanniborda6362 2 ปีที่แล้ว +1

    Excelente explicación; es la mejor que he encontrado. Thank you so much

  • @minnami778
    @minnami778 2 ปีที่แล้ว

    Thank you so much!!! Subscribed All the way 💯👍

  • @elyortuxtamuratov3140
    @elyortuxtamuratov3140 ปีที่แล้ว

    Thank You So Much :-)

  • @kirkislas4320
    @kirkislas4320 3 ปีที่แล้ว

    Solid explanation and you have good humor... SUBBED

  • @devesh9356
    @devesh9356 2 ปีที่แล้ว

    Thanks for this amazing info!

  • @vaibhavvashisht7971
    @vaibhavvashisht7971 3 ปีที่แล้ว

    Finally this was the issue!! . Thanks man great stuff.

  • @carltheyoda2155
    @carltheyoda2155 2 ปีที่แล้ว

    You're a lifesaver brother! SUBSCRIBING!!!

  • @venkatkrishna266
    @venkatkrishna266 2 ปีที่แล้ว

    you saved my day, Thank you!!

  • @shuwayhat
    @shuwayhat ปีที่แล้ว

    Thank you

  • @tusimegodwin283
    @tusimegodwin283 3 ปีที่แล้ว

    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

  • @MaryPeng001
    @MaryPeng001 3 ปีที่แล้ว

    Finally found how to “code”, thank you so much

  • @strange_matter
    @strange_matter 3 ปีที่แล้ว

    Very Helpful

  • @amitpoman2294
    @amitpoman2294 3 ปีที่แล้ว

    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!

    • @jsoma
      @jsoma  3 ปีที่แล้ว

      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!

    • @amitpoman2294
      @amitpoman2294 3 ปีที่แล้ว

      I didn't have a .zshrc file instead I have .zprofile where I added my vars

  • @FLneodesign
    @FLneodesign 3 ปีที่แล้ว +4

    Solution: change shell to Bash, open terminal and type: chsh -s /bin/bash

  • @sirishakandepi4031
    @sirishakandepi4031 3 ปีที่แล้ว

    Thankyou so much!!

  • @hcneakok
    @hcneakok 3 ปีที่แล้ว +1

    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?

  • @user-ij9we5qo3b
    @user-ij9we5qo3b ปีที่แล้ว

    Why my .zshrc file is readonly? I could not modify it. Many thanks.

  • @younginventors5917
    @younginventors5917 3 ปีที่แล้ว

    why do I get an empty file when using "code ~/.zshrc" command on terminal? I am using macOS big sur. Any idea?

  • @homeniano.oficial
    @homeniano.oficial 2 ปีที่แล้ว

    command code not exists here. how do i fix that?

  • @steven__7009
    @steven__7009 3 ปีที่แล้ว

    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?

    • @jsoma
      @jsoma  3 ปีที่แล้ว +2

      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

  • @blackbox1024
    @blackbox1024 3 ปีที่แล้ว

    Totally unnecessary change, zsh is the same sh*t as bash but more complicated

  • @PawandeepKaur-ch3kz
    @PawandeepKaur-ch3kz ปีที่แล้ว

    Jhhhbm

  • @raadbahmani6788
    @raadbahmani6788 3 ปีที่แล้ว

    Get to the point dude!

    • @jsoma
      @jsoma  3 ปีที่แล้ว

      🎻

  • @182johny182
    @182johny182 3 ปีที่แล้ว

    thank you so much!! :-)