Sep
30th
Wed
30th
Sourcing .bashrc from .profile
Recently tried to do a remote clone of a repository in my laptop to my server from my server. Using:
hg clone ssh://login@serverip/path/to/repo repo
Resulting in the following:
remote: bash: hg: command not found
abort: no suitable response from remote hg!
Basically there was no .bashrc in my home folder so I had to create one and add /opt/local/bin to PATH because my mercurial was installed using ports so it was installed in /opt/local/bin. After that I source .bashrc from my .profile.
Create ~/.bashrc with the following:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
Remove from ~/.profile
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
Add to ~/.profile
source .bashrc