Set the local bin directory to ~/.local/bin instead of ~/bin

This commit is contained in:
Rodolphe Breard 2017-10-20 12:17:55 +02:00
parent 17e836ec36
commit 6af0ed1d87

View file

@ -1,4 +1,4 @@
BIN_PATH="$HOME/bin" BIN_PATH="$HOME/.local/bin"
if [ -d "$BIN_PATH" ]; then if [ -d "$BIN_PATH" ]; then
found=$(echo $PATH | tr ':' '\n' | grep -w "$BIN_PATH") found=$(echo $PATH | tr ':' '\n' | grep -w "$BIN_PATH")
[ ! "$found" ] && export PATH="$BIN_PATH:$PATH" [ ! "$found" ] && export PATH="$BIN_PATH:$PATH"