From bdb93f86b5444aa3d7e6a2eb1f8c5dff33d07c4f Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 29 Jul 2022 11:54:36 -0400 Subject: [PATCH] Set $PATH in the correct dotfiles --- zsh/.zprofile | 3 +++ zsh/.zshenv | 3 --- zsh/.zshrc | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/zsh/.zprofile b/zsh/.zprofile index 9c27149..13aa138 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -1,3 +1,6 @@ +typeset -U path +path=(~/bin ~/.local/bin ~/.gem/ruby/2.6.0/bin ~/go/bin /opt/local/bin /usr/local/opt/make/libexec/gnubin /opt/homebrew/opt/coreutils/libexec/gnubin $path) + if [[ -f "/opt/homebrew/bin/brew" ]]; then eval "$(/opt/homebrew/bin/brew shellenv)" FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}" diff --git a/zsh/.zshenv b/zsh/.zshenv index 9d61e1b..0a30954 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1,6 +1,3 @@ -typeset -U path -path=(~/bin ~/.local/bin ~/.gem/ruby/2.6.0/bin ~/go/bin /opt/local/bin /usr/local/opt/make/libexec/gnubin /opt/homebrew/opt/coreutils/libexec/gnubin $path) - export INFOPATH="$HOME/info:/opt/homebrew/share/info:" export LEDGER_FILE="$HOME/journal.ledger" diff --git a/zsh/.zshrc b/zsh/.zshrc index ede52b5..e0870bb 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,5 +1,7 @@ # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH +typeset -U path +path=(~/bin ~/.local/bin ~/.gem/ruby/2.6.0/bin ~/go/bin /opt/local/bin /usr/local/opt/make/libexec/gnubin /opt/homebrew/opt/coreutils/libexec/gnubin $path) # Path to your oh-my-zsh installation. export ZSH="$HOME/.oh-my-zsh"