From b5eff48332ed04098211d2b124680ef73d08e503 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 22 Nov 2019 15:49:15 +0000 Subject: [PATCH] Re-order paths --- roles/home-cli/files/shrc | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/roles/home-cli/files/shrc b/roles/home-cli/files/shrc index ae24d2f..659c0c7 100644 --- a/roles/home-cli/files/shrc +++ b/roles/home-cli/files/shrc @@ -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"