You are not logged in.
Pages: 1
Hello,
In distros that I have used previously, ln-ing a script into /usr/local/bin would allow me to call the command without typing the entire path. This doesn't seem to occur in my Arch install. How do I get this to work?
Thanks.
Last edited by future stir-fry (2008-12-02 23:14:45)
Offline
/usr/local/bin is not in $PATH in Arch by default
Offline
Manually add it to the $PATH variable in /etc/profile, or this should do it automatically:
$ sudo sed -i '/^PATH/ s|"$|:/usr/local/bin"|' /etc/profile
$ . /etc/profile
ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.
Offline
You should do that in /etc/profile.d, pacman overwrites /etc/profile.
Offline
Yea, you're right. Actually I was just about to edit my post that it might be better to do use ~/.bashrc instead of /etc/profile:
$ echo -e 'PATH="$PATH:/usr/local/bin"\nexport PATH' >> ~/.bashrc
$ . ~/.bashrc
Last edited by creslin (2008-12-02 11:27:26)
ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.
Offline
Heh, how about:
echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.bashrc
Offline
Whoo victory! Thank you guys.
Offline
Pages: 1