Remote command via ssh
history:
constant error of command not found for installations requiring “.bashrc”.
Thought that “.bashrc” is not loaded, turns out it is loaded, but it quits early when it is not in interactive mode.
Login shell by “bash -l” will load “.profile”, which contains sourcing “.bashrc”
Non-login shell by “bash” will load “.bashrc”.
Solution is to put “.bashrc” installation content before its interactive check