Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #224497
| From | Nicolas George <george@nsup.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell |
| Date | 2020-07-07 16:20 +0200 |
| Message-ID | <ApWBX-2af-9@gated-at.bofh.it> (permalink) |
| References | <ApWiC-1Op-11@gated-at.bofh.it> <ApWiC-1Op-9@gated-at.bofh.it> <ApWsi-279-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Roberto C. Sánchez (12020-07-07): > You should add the export command to ~/.bashrc (for it to only be in > effect for that user) Except ~/.bashrc is only sourced for interactive shells, it will not be run when applications are executed by a GUI, for example. (Also, for some reason, the bash authors thought it was a good idea to have login interactive shells not run ~/.bashrc; better use a saner shell and put the environment in ~/.zshenv, which is sourced by all shells.) But adding the application bin directory to the $PATH environment is entirely the wrong way of going at it. It results in huge $PATH, which increase the cost of running everything and makes the system more fragile. The right way of going at it is to make the application entry points appear in the directories that are already in $PATH. cd ~/bin ln -s ../opt/something/bin/something (relative paths are to be preferred in these cases) Regards, -- Nicolas George
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How To Permanently Add-to a Users PATH Statement in the Bash Shell "Stephen P. Molnar" <s.molnar@sbcglobal.net> - 2020-07-07 16:00 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Roberto C. Sánchez <roberto@debian.org> - 2020-07-07 16:10 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Jonathan Dowland <jon+debian-user@dow.land> - 2020-07-07 16:20 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-07 16:40 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Zenaan Harkness <zenaan@freedbms.net> - 2020-07-08 02:10 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Roberto C. Sánchez <roberto@debian.org> - 2020-07-08 02:30 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell David Wright <deblis@lionunicorn.co.uk> - 2020-07-08 06:50 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Andrei POPESCU <andreimpopescu@gmail.com> - 2020-07-08 07:30 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Nicolas George <george@nsup.org> - 2020-07-07 16:40 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Nicolas George <george@nsup.org> - 2020-07-07 16:20 +0200
Fw: How To Permanently Add-to a Users PATH Statement in the Bash Shell Matthew Campbell <trenix25@pm.me> - 2020-07-07 16:10 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-07 16:20 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Zenaan Harkness <zenaan@freedbms.net> - 2020-07-08 02:10 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Zenaan Harkness <zenaan@freedbms.net> - 2020-07-08 02:50 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Andrei POPESCU <andreimpopescu@gmail.com> - 2020-07-08 07:30 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-08 13:50 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Zenaan Harkness <zenaan@freedbms.net> - 2020-07-08 14:50 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Nate Bargmann <n0nb@n0nb.us> - 2020-07-08 15:00 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-08 15:40 +0200
Re: How To Permanently Add-to a Users PATH Statement in the Bash Shell Nate Bargmann <n0nb@n0nb.us> - 2020-07-09 20:40 +0200
csiph-web