Re-order paths

This commit is contained in:
Anthony Rose 2019-11-22 15:49:15 +00:00
parent c99f94e68f
commit b5eff48332

View file

@ -126,25 +126,22 @@ alias prunx="podman run -v /tmp/.X11-unix:/tmp/.X11-unix:ro -e DISPLAY=\"unix\$D
alias drun="sudo docker run --rm -it"
alias drunx="sudo docker run -v /tmp/.X11-unix:/tmp/.X11-unix:ro -e DISPLAY=\"unix\$DISPLAY\""
PATH="/usr/bin:/bin"
for dir in $HOME/.local/bin \
$HOME/bin \
/app/bin \
/snap/bin \
/sbin \
/usr/sbin \
/usr/X11R6/bin \
/usr/X11R7/bin \
/usr/local/bin \
/usr/local/sbin \
/usr/pkg/bin \
/usr/pkg/sbin \
/usr/games \
/usr/local/heirloom-doctools/bin \
/var/lib/snapd/snap/bin \
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
for dir in $HOME/bin \
$GOPATH/bin \
$HOME/.cargo/bin \
$HOME/.gem/ruby/*/bin \
/usr/X11R7/bin \
/usr/X11R6/bin \
/usr/local/sbin \
/usr/local/bin \
/usr/pkg/sbin \
/usr/pkg/bin \
/usr/games \
/usr/local/heirloom-doctools/bin \
/var/lib/snapd/snap/bin \
/app/bin \
/snap/bin \
; do
if [ -d "$dir" ]; then
PATH="$PATH:$dir"