Re: [PATCH 0/4] Writing refs in git-ssh-push
- From
- Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
- Date
- Jun 7, 2005, 07:30 UTC
- Message-ID
- <20050607073045.GZ3669@cip.informatik.uni-erlangen.de>
- In-Reply-To
- <Pine.LNX.4.58.0506062008560.2286@ppc970.osdl.org>
Hello,
> PATH=$PATH:~/bin in my .bashrc,
this should work because ssh executes a *not* login shell when you execute a remote command. And bash reads .bashrc always and .bash_profile only for login shell. Is bash your login shell?
For me it works:
(excalibur) [~] cat .bashrc export PATH=$PATH:~/bin (excalibur) [~] ssh localhost env | grep PATH PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/cip/adm/sithglan/bin
In university I had to put the following in my .cshrc (because I have tcsh as login shell and can't change it) to make bk push and stuff working:
(faui00u) [~] cat .cshrc setenv PATH /opt/csw/bin:/usr/X11R6/bin:/sbin:/usr/bin:/usr/sbin:/local/bin:/bin:/local/bitkeeper/bin
Thomas