I installed debian using debootstrap (debootstrap --arch=amd64 stretch /target http://httpredir.debian.org/debian). When I check my PATH variable i get:
ssh git@srv 'echo $PATH'
/usr/bin:/bin
How can I expand it and include e.g. /usr/local/bin?
/etc/passwd:
git:x:108:112:git version control,,,:/home/git:/bin/sh
I already tried the following approaches, but without success because these files are only read for interactive shells. Thanks for advices.
echo 'export PATH="/usr/a1:$PATH"' >> /etc/profile
echo 'PATH="/usr/a2:$PATH"' >> /etc/environment
echo 'export PATH="/usr/a3:$PATH"' >> /home/git/.profile
chown git:git /home/git/.profile
echo 'export PATH="/usr/a4:$PATH"' >> /home/git/.bashrc
chown git:git /home/git/.bashrc
echo 'PATH="/usr/a5:$PATH"' >> /home/git/.ssh/rc
chown git:git /home/git/.ssh/rc
echo 'export PATH="/usr/a6:$PATH"' >> /home/git/.ssh/environment
chown git:git /home/git/.ssh/environment