User Tools

Site Tools


nix:pathvars

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nix:pathvars [2020/01/06 15:49] kauffmannix:pathvars [2020/01/06 16:00] (current) kauffman
Line 36: Line 36:
 </code> </code>
  
-==== 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) ''%%~/bin%%'' to our ''%%PATH%%'' variable. As you may have guessed we will want to add (pre or postpend) ''%%~/bin%%'' to our ''%%PATH%%'' variable.
  
-==== The reason you are here ====+===== Manipulating the PATH variable =====
  
 <code> <code>
Line 111: Line 111:
 </code> </code>
  
-==== Making the change permanent ====+===== Making the change permanent =====
 Add the following line to a file called ''%%~/.bash_profile%%''. Add the following line to a file called ''%%~/.bash_profile%%''.
  
    export PATH=$PATH:$HOME/bin    export PATH=$PATH:$HOME/bin
  
-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 ''%%$HOME/bin%%'' with any path you wish and add as many paths as you want at once.
  
 If you'd like to prepend just move your path in front of ''%%$PATH%%''. Just make sure each path is separated by a colon ''%%:%%''. If you'd like to prepend just move your path in front of ''%%$PATH%%''. Just make sure each path is separated by a colon ''%%:%%''.
/var/lib/dokuwiki/data/attic/nix/pathvars.1578347394.txt.gz · Last modified: 2020/01/06 15:49 by kauffman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki