Fix path ordering
This commit is contained in:
parent
e260aac3c4
commit
72ffbb74cb
1 changed files with 7 additions and 5 deletions
|
@ -120,7 +120,7 @@ _acp_add_path () {
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
PATH="$1:$PATH"
|
PATH="$PATH:$1"
|
||||||
export PATH
|
export PATH
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
@ -128,19 +128,21 @@ _acp_add_path () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Last in the list means first in the path.
|
# First in the list means first in the path.
|
||||||
|
PATH=/usr/bin
|
||||||
for dir in "$HOME/.local/bin" \
|
for dir in "$HOME/.local/bin" \
|
||||||
"$HOME/.cargo/bin" \
|
"$HOME/.cargo/bin" \
|
||||||
"$XDG_DATA_HOME/gem/ruby/bin" \
|
"$XDG_DATA_HOME/gem/ruby/bin" \
|
||||||
"$XDG_DATA_HOME/flatpak/exports/bin" \
|
"$XDG_DATA_HOME/flatpak/exports/bin" \
|
||||||
"$ACP/bin" \
|
"$ACP/bin" \
|
||||||
/opt/local/sbin \
|
|
||||||
/opt/local/bin \
|
/opt/local/bin \
|
||||||
|
/opt/local/sbin \
|
||||||
/var/lib/flatpak/exports/bin \
|
/var/lib/flatpak/exports/bin \
|
||||||
/usr/local/sbin \
|
|
||||||
/usr/local/bin \
|
/usr/local/bin \
|
||||||
|
/usr/local/sbin \
|
||||||
/usr/sbin \
|
/usr/sbin \
|
||||||
/usr/bin
|
/bin \
|
||||||
|
/sbin
|
||||||
do
|
do
|
||||||
_acp_add_path "$dir"
|
_acp_add_path "$dir"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue