From dfa33e81e83281e508de83eb96421feb34b9c798 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sat, 6 Nov 2021 13:00:08 -0400 Subject: [PATCH] Prevent Mac from reodering path --- Makefile | 3 +++ zsh/.zshenv | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 513ed44..388c400 100644 --- a/Makefile +++ b/Makefile @@ -34,3 +34,6 @@ update-repo: clean: rm -f $$HOME/bin/, bash remove-symlinks + +mac: + sudo mv /etc/{zprofile,zprofile.old} diff --git a/zsh/.zshenv b/zsh/.zshenv index e649e6f..3dc5745 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -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