Results 1 to 8 of 8

Thread: Environment variables

  1. #1

    Default Environment variables

    How can I set an environment variable permanently in openSUSE11.3?

  2. #2

    Default Re: Environment variables

    ? have you read the pointers in /etc/bash.bashrc?

    # PLEASE DO NOT CHANGE /etc/bash.bashrc There are chances that your changes
    # will be lost during system upgrades. Instead use /etc/bash.bashrc.local
    # for your local settings, favourite global aliases, VISUAL and EDITOR
    # variables, etc ...
    and in /etc/profile?
    # PLEASE DO NOT CHANGE /etc/profile. There are chances that your changes
    # will be lost during system upgrades. Instead use /etc/profile.local for
    # your local settings, favourite global aliases, VISUAL and EDITOR
    # variables, etc ...

  3. #3
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: Environment variables

    Add them to your ~/.bashrc init file. If you want the changes system-wide, look at JohnVV's post.

  4. #4

    Default Re: Environment variables

    Yes, I read it but the problem is that I have neither /etc/bash.bashrc.local nor /etc/profile.local

  5. #5

    Default Re: Environment variables

    It is up to you to create these files.

  6. #6

    Default Re: Environment variables

    Quote Originally Posted by chief_sealth View Post
    Add them to your ~/.bashrc init file. If you want the changes system-wide, look at JohnVV's post.
    I don't have that file

  7. #7

    Default Re: Environment variables

    BTW these files are meant for system wide settings. Users should define their variables in ~/.bashrc and/or ~/.profile.

  8. #8

    Default Re: Environment variables

    echo "export EDITOR=vi" >> ~/.bashrc

    Now you have it.


    * Yes I did replace ">" by ">>" ... just in case you had one, so it won't be overwritten.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •