nix:pathvars
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
nix:pathvars [2020/01/06 15:49] – kauffman | nix:pathvars [2020/01/06 16:00] (current) – kauffman | ||
---|---|---|---|
Line 36: | Line 36: | ||
</ | </ | ||
- | ==== Intro the the PATH variable ==== | + | ===== Intro the the PATH variable |
Generally your search path for binaries will look something like the below. | Generally your search path for binaries will look something like the below. | ||
Line 63: | Line 63: | ||
- | ===== Manipulating the PATH variable | + | ===== Setting up an Example |
Your shell will allow you manipulate the order in which these paths appear. It's as simple as setting a variable. | Your shell will allow you manipulate the order in which these paths appear. It's as simple as setting a variable. | ||
Line 91: | Line 91: | ||
As you may have guessed we will want to add (pre or postpend) '' | As you may have guessed we will want to add (pre or postpend) '' | ||
- | ==== The reason you are here ==== | + | ===== Manipulating the PATH variable ===== |
< | < | ||
Line 111: | Line 111: | ||
</ | </ | ||
- | ==== Making the change permanent ==== | + | ===== Making the change permanent |
Add the following line to a file called '' | Add the following line to a file called '' | ||
| | ||
- | This will postpend our custom path to the search path every time we launch a bash login shell. | + | This will postpend our custom path to the search path every time we launch a bash login shell. You can replace '' |
If you'd like to prepend just move your path in front of '' | If you'd like to prepend just move your path in front of '' |
/var/lib/dokuwiki/data/attic/nix/pathvars.1578347394.txt.gz · Last modified: 2020/01/06 15:49 by kauffman