From bad3465e656755418ec4e951ee747c2912145f96 Mon Sep 17 00:00:00 2001 From: TheK4n Date: Sun, 26 Feb 2023 01:21:52 +0300 Subject: [PATCH] fix PATH variable --- sub/bash/export | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/sub/bash/export b/sub/bash/export index e7c63ab..7ed6ad7 100644 --- a/sub/bash/export +++ b/sub/bash/export @@ -12,25 +12,19 @@ export HISTIGNORE="&:l[lsa\.]:[bf]g:exit:q:clear:c:history:h" test -z "$BROWSER" && export BROWSER=firefox -# set PATH so it includes user's private bin if it exists -if [ -d "$HOME/bin" ] ; then - export PATH="$PATH:$HOME/bin" -fi -# set PATH so it includes user's private bin if it exists if [ -d "$HOME/.local/bin" ] ; then - export PATH="$PATH:$HOME/.local/bin" + export PATH="$HOME/.local/bin:$PATH" fi if [ -d "$HOME/.npm-global/bin" ] ; then - export PATH="$PATH:$HOME/.npm-global/bin" + export PATH="$HOME/.npm-global/bin:$PATH" fi - if [ -d "$HOME/.go" ] ; then export GOPATH="$HOME/.go" fi if [ -d "$HOME/.go/bin" ] ; then - export PATH="$PATH:$HOME/.go/bin" + export PATH="$HOME/.go/bin:$PATH" fi