Error with bash profile

when i was doing this course on pipenv (https://www.codecademy.com/courses/learn-python-3/videos/learn-python3-pipenv), when following the instructions at six minutes i think i went wrong because my bash profile now shows the following error:

-bash: dirname: command not found

-bash: dirname: command not found

-bash: dirname: command not found

-bash: dirname: command not found

The default interactive shell is now zsh.

To update your account to use zsh, please run chsh -s /bin/zsh.

For more details, please visit https://support.apple.com/kb/HT208050.

I went down this rabbit hole recently.

Codecademy has a shell profile set up guide in tips and resources Setting Up Your Command Line with a video by Farish @71kash (which hopefully you encountered before the pipenv review). Their lesson supplement is specifically a bash set up because the lessons are in bash, which can only help you so far if you’re eager to run a thorough shell set up on zsh with efficient control of file system navigation and clean pip/env/version functionality.

Here are some external resources that helped me:

Good to note that these are more or less approaches to the same thing – pip/env configs with zsh setup.

I think, for Mac users, Briegel’s blog and book really help explain what running chsh -s /bin/zsh does to your machine in order to then inform how you wish to shell script on a 2020 Mac/Terminal in general.

1 Like

Also, with the release of Catalina, zsh is the default. If you have updated it might break things. Your bash shell might be recoverable with chsh -s /bin/bash . Overall, the commands are the same, you gain some additional features with zsh. I have seen some problems with the terminal though after a Catalina update.

1 Like