* Stephen Black
On 1 Sep 2004 at 10:53, Patrick Shanahan wrote:
Add the path as you have above to /etc/profile.local
Patrick, thanks for the very quick reply.
With SuSE then, should I not use the export PATH command, but instead manually edit the /etc/profile.local file (I'm assuming this already exists on my system)?
Yes, you should and that is what you will do by adding the $PATH as described below, but the way I describe is automatic and for *all* consoles and term windows. The reason that you did not maintain the added $PATH was that you only added it for the console or term window you initiated it inside. Once you close that window, you loose any environment changes (they are LOCAL - no other session can see them).
What entries do I need to make?
as root make a file /etc/profile.local with the content: export PATH=$PATH:/usr/gnat/bin Then each console or term window you open with any user with an account on that computer will have /usr/gnat/bin as an element of his path (unless you add more later, the last element). If you feel it important to access that element of the path earlier, move $PATH to the end, but that will cause a search of the $PATH to look in /usr/gnat/bin *every* time it consults the PATH to satisfy only one program. note: as this discussion began on the list, it should be continued on the list as others may be interested. I have posted to the list in addition to a personal copy to you. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
participants (1)
-
Patrick Shanahan