I'm trying to get
source /home/ghost/.bashrc, but it doesn't seem to load the contents:
$ su -l -c 'source /home/ghost/.bashrc; nvm' ghost -su: nvm: command not found
I use nvm to manage Node versions. Nvm is normally sourced by the
ghost user in
# in /home/ghost/.bashrc export NVM_DIR="/home/ghost/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
I still can't figure out why I can't
source the file explicitly. Can anybody tell me why?