I have installed Hadoop and every time I want to run it, first I have to do this:
source ~/.bash_profile
or it won\'t recognize the command
Now that we've narrowed down the problem:
ps -p $$
at the command line to determine that you are, in fact, using a bash shell. .zshrc
..bash_profile
to .zsh
, OR.zshrc
to directly source your .bash_profile
.UPDATE: Do what @TC1 mentions in the comments and keep the shell-specific code in each shell's own profile, and from those profiles, only source shell-agnostic code.