maddog Posted December 11, 2006 Posted December 11, 2006 I have tried many methods of changing the "$PATH" environment variable in OpenSuSE 10.1 but to no avail. The variable changes until I close the terminal but then goes back to the default. I tried: maddog@64:~>PATH=$PATH:/bin maddog@64:~>export PATH but when I close the terminal, it gets rid of ths change. Any help is greatly appreciated. Quote
Sparda Posted December 11, 2006 Posted December 11, 2006 What are you trying to do? Just change directory? CD dude! Quote
maddog Posted December 11, 2006 Author Posted December 11, 2006 sorry. I should have been more descriptive before. when use the "env" command, it returns this for $PATH: PATH=/home/mhowell/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin I need it to include the directory "/opt/kde3/share/apps" and used the method in my first post to try to add this directory to $PATH. I am sorry that I am bad at explaining things. Thanks Quote
Guest K1u Posted December 11, 2006 Posted December 11, 2006 ask this at any linux forum or suse forum they will answer u in a matter of minutes Quote
cooper Posted December 11, 2006 Posted December 11, 2006 I need it to include the directory "/opt/kde3/share/apps" and used the method in my first post to try to add this directory to $PATH. Specific to your own command prompts: Add the 2 commands to your .bash_profile file in your home dir. Specific to your own X environment: Add the 2 commands to your .xinitrc file in your home dir (not 100% sure about this one). System-wide: Add the two commands to /etc/profile (this file should already exist. If it's not there, check the INVOCATION chapter of the bash man page first to make sure that's the file your distro uses). Quote
uber_tom Posted December 11, 2006 Posted December 11, 2006 cant you just link the app(s) in question to /usr/bin? its what i do, but im a very lazy man Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.