• Nonononoki@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    2
    ·
    8 months ago

    To this day, I still don’t know how to set a path variable permanently in any Linux distro

    • excitingburp@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      8 months ago

      export PATH=$PATH:/mypath1:/mypath2 in ~/.profile. Means “add :/mypath1:/mypath2 to what is already in $PATH.” If you need the entire system to be aware, set or update it in /etc/environment with PATH=...

    • baseless_discourse@mander.xyz
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      8 months ago

      I do feel like setting environment variable on linux is not as intuitive as on windows, but after I setup my workflow, I realized I never have the need to manually set any environmental variable besides in flatseal.

      Maybe you have a specific use case for it?