Prevent Mac from reodering path

This commit is contained in:
Andrew Tomaka 2021-11-06 13:00:08 -04:00
parent 5e6e338807
commit dfa33e81e8
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 6 additions and 3 deletions

View file

@ -34,3 +34,6 @@ update-repo:
clean:
rm -f $$HOME/bin/,
bash remove-symlinks
mac:
sudo mv /etc/{zprofile,zprofile.old}

View file

@ -17,6 +17,9 @@ if [[ "$OSTYPE" == darwin* ]]; then
export MANPATH="/opt/homebrew/share/man${MANPATH+:$MANPATH}:";
export INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}";
[[ -d "$GNU_TOOLS_PATH" ]] && PATH="$GNU_TOOLS_PATH:$PATH"
[[ -d "$GNU_TOOLS_MAN_PATH" ]] && MANPATH="$GNU_TOOLS_MAN_PATH:$MANPATH"
GO_DIR="/usr/local/opt/go/libexec"
else
GO_DIR="/usr/local/go/bin"
@ -28,9 +31,6 @@ fi
[[ -d "$LOCAL_HOME_BIN_PATH" ]] && PATH="$LOCAL_HOME_BIN_PATH:$PATH"
[[ -d "$PERSONAL_BIN_PATH" ]] && PATH="$PERSONAL_BIN_PATH:$PATH"
[[ -d "$GNU_TOOLS_PATH" ]] && PATH="$GNU_TOOLS_PATH:$PATH"
[[ -d "$GNU_TOOLS_MAN_PATH" ]] && MANPATH="$GNU_TOOLS_MAN_PATH:$MANPATH"
[[ -d "$PERSONAL_COMPLETIONS_PATH" ]] && fpath=($PERSONAL_COMPLETIONS_PATH $fpath)
# EDITOR