Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #205200

Re: Setting default $PATH for all users

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: Setting default $PATH for all users
Date 2019-02-11 15:40 +0100
Message-ID <xqkUx-8tp-5@gated-at.bofh.it> (permalink)
References (2 earlier) <xq4mJ-5UK-1@gated-at.bofh.it> <xq4PM-6l6-23@gated-at.bofh.it> <xq6ox-7pb-1@gated-at.bofh.it> <xq6HT-7xf-9@gated-at.bofh.it> <xq7DX-8fo-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Feb 10, 2019 at 07:28:02PM -0500, Lee wrote:
> Which is semi-interesting I guess, but you're the one that wanted a
> single location to add $PATH elements for all current & future users -
> yes?  The interesting answer would be if adding
> export PATH=$PATH:/foo
> to /etc/bash.bashrc is what you're looking for.

This only adds the PATH component to interactive bash shells.  It does
not, for example, add it to window managers, desktop environments, web
browsers launched from window manager menus, etc.  Nor does it affect
users of other shells than bash.

<https://mywiki.wooledge.org/DotFiles> gives a decent overview of
how some logins work, including a tiny bit of Debian-specific stuff.
It's missing some pieces (e.g. Debian's ~/.xsessionrc, Arch Linux's
~/.xprofile, warnings about GNOME/dbus), but it's a good start.

See <https://wiki.debian.org/Xsession> for a bit more info on the
Debian-specific stuff, including the ~/.xsessionrc file.

<https://wiki.debian.org/DotFiles> is based on an older version of that
page and may also be helpful.  I wrote the original page on tarzeau's
forerunner of the Debian wiki, and he migrated it to the current wiki
in 2007.  Looks like there have been just a few edits since then, so
the bulk of the page is still my original writing from 15 years ago.
Comparing to the current version on wooledge.org will show you how my
writing has improved since then.  It's still a lifelong learning process.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Setting default $PATH for all users Richard Owlett <rowlett@cloud85.net> - 2019-02-08 14:20 +0100
  Re: Setting default $PATH for all users Roberto C. Sánchez <roberto@debian.org> - 2019-02-08 14:30 +0100
    Re: Setting default $PATH for all users <tomas@tuxteam.de> - 2019-02-08 14:40 +0100
      Re: Setting default $PATH for all users Richard Owlett <rowlett@cloud85.net> - 2019-02-08 16:00 +0100
        Re: Setting default $PATH for all users Dan Ritter <dsr@randomstring.org> - 2019-02-08 16:10 +0100
          Re: Setting default $PATH for all users David Wright <deblis@lionunicorn.co.uk> - 2019-02-11 04:10 +0100
            Re: Setting default $PATH for all users <tomas@tuxteam.de> - 2019-02-11 10:00 +0100
              Re: Setting default $PATH for all users rhkramer@gmail.com - 2019-02-11 13:50 +0100
                Re: Setting default $PATH for all users Curt <curty@free.fr> - 2019-02-11 14:10 +0100
                Re: Setting default $PATH for all users rhkramer@gmail.com - 2019-02-11 18:10 +0100
                Re: Setting default $PATH for all users Curt <curty@free.fr> - 2019-02-11 18:30 +0100
                Re: Setting default $PATH for all users Greg Wooledge <wooledg@eeg.ccf.org> - 2019-02-11 18:40 +0100
                Re: Setting default $PATH for all users Curt <curty@free.fr> - 2019-02-11 18:50 +0100
                Re: Setting default $PATH for all users David Wright <deblis@lionunicorn.co.uk> - 2019-02-11 21:00 +0100
        Re: Setting default $PATH for all users <tomas@tuxteam.de> - 2019-02-08 16:40 +0100
  Re: Setting default $PATH for all users David Wright <deblis@lionunicorn.co.uk> - 2019-02-08 20:10 +0100
    Re: Setting default $PATH for all users Richard Owlett <rowlett@cloud85.net> - 2019-02-10 22:00 +0100
      Re: Setting default $PATH for all users Andy Smith <andy@strugglers.net> - 2019-02-10 22:30 +0100
        Re: Setting default $PATH for all users Richard Owlett <rowlett@cloud85.net> - 2019-02-10 22:50 +0100
          Re: Setting default $PATH for all users Andy Smith <andy@strugglers.net> - 2019-02-11 00:30 +0100
        Re: Setting default $PATH for all users Lee <ler762@gmail.com> - 2019-02-11 00:10 +0100
          Re: Setting default $PATH for all users Richard Owlett <rowlett@cloud85.net> - 2019-02-11 00:30 +0100
            Re: Setting default $PATH for all users Lee <ler762@gmail.com> - 2019-02-11 01:30 +0100
              Re: Setting default $PATH for all users Greg Wooledge <wooledg@eeg.ccf.org> - 2019-02-11 15:40 +0100
      Re: Setting default $PATH for all users <tomas@tuxteam.de> - 2019-02-10 22:50 +0100
        Re: Setting default $PATH for all users Richard Owlett <rowlett@cloud85.net> - 2019-02-10 23:30 +0100
          Re: Setting default $PATH for all users <tomas@tuxteam.de> - 2019-02-11 10:00 +0100
            Re: Setting default $PATH for all users David Wright <deblis@lionunicorn.co.uk> - 2019-02-11 14:50 +0100
      Re: Setting default $PATH for all users David Wright <deblis@lionunicorn.co.uk> - 2019-02-11 03:30 +0100

csiph-web