summaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-25 15:32:23 +0100
committerDavid Robillard <d@drobilla.net>2020-12-25 15:32:23 +0100
commit96caf756a8beb0e87ecf53b96d9824b8fa8f81b1 (patch)
treeb0c45406a2586f697b069d18242d558055b8fb4c /bash
parent38b4aa3081c879d2ab6f6e0eec11ba6b59214015 (diff)
downloaddotfiles-96caf756a8beb0e87ecf53b96d9824b8fa8f81b1.tar.gz
dotfiles-96caf756a8beb0e87ecf53b96d9824b8fa8f81b1.tar.bz2
dotfiles-96caf756a8beb0e87ecf53b96d9824b8fa8f81b1.zip
Fix local PATH configuration
Diffstat (limited to 'bash')
-rw-r--r--bash/.bashrc7
1 files changed, 5 insertions, 2 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 55e470c..f1cd6e9 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -131,9 +131,12 @@ if [ -d "$HOME/.local/lib/node_modules/bin" ] ; then
PATH="$HOME/.local/lib/node_modules/bin:$PATH"
fi
-# set PATH so it includes user's private bin if it exists
+if [ -d "$HOME/.local/bin" ] ; then
+ PATH="$HOME/.local/bin:$PATH"
+fi
+
if [ -d "$HOME/bin" ] ; then
- PATH="$HOME/bin:$HOME/.local/bin:$PATH"
+ PATH="$HOME/bin:$PATH"
fi
if [ -d "/usr/lib/ccache/bin" ] ; then # Arch