Adding $home/bin to your path

From XPUB & Lens-Based wiki
Revision as of 17:03, 26 November 2013 by Michael Murtaugh (talk | contribs) (Created page with "Create a file called .profile in your home that does this: <source lang="bash"> # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PAT...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Create a file called .profile in your home that does this:

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi