Issue
I recently switched my shell from bash to zsh. I had set up Anaconda via bash, but now that I'm running zsh as my default shell, I can't find conda or, more importantly, Jupyter. I've figured that to get access to Jupyter I can use exec bash -l
, but that seems pointlessly temporary. I would rather access Jupyter locally from zsh. Is there some way to link zsh back to the bash configs?
Solution
Since zsh can interpret most of bash, you can have it include the bash init files in its corresponding init files.
To do this, add e.g. the line source ~/.bashrc
in ~/.zshrc
Each shell has many different config files and they don't correspond 1:1, so look through and see which ones you want to link. For example, zsh login shells reads both .zlogin
and .zprofile
, while bash login shells read only the first available of .bash_profile
, .bash_login
and .profile
Answered By - that other guy Answer Checked By - Willingham (WPSolving Volunteer)