~edwardloveall/dotfiles

9ed409421932be74b622f721fa937cdfcdfe3cbb — Edward Loveall 2 years ago 1d9d25e
Rework $PATHs

The motivation here was to get `.git/safe/../../bin` before asdf paths so local project commands go before global ones. This also gave me an excuse to organize and clarify my path setup.
1 files changed, 19 insertions(+), 13 deletions(-)

M zsh/dot-zshrc
M zsh/dot-zshrc => zsh/dot-zshrc +19 -13
@@ 1,20 1,26 @@
### Paths ###
### $PATH ###

# Local and default paths
export PATH="$HOME/.bin:$HOME/.local/bin:/usr/local/bin:/usr/local/sbin:$PATH"

# Rust bin path
export PATH="$PATH:$HOME/.cargo/bin/"

# yarn path
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
# asdf (prepends to $PATH)
source ~/.asdf/asdf.sh

# safe bin stubs path
# Prepend safe bin paths (before asdf)
export PATH=".git/safe/../../bin:$PATH"
export PATH=".git/safe/../../node_modules/.bin:$PATH"

# asdf
source ~/.asdf/asdf.sh
# Append local paths
export PATH="$PATH:$HOME/.local/bin"

# Append Homebrew paths (Intel)
export PATH="$PATH:/usr/local/bin:/usr/local/sbin"

# Append Homebrew paths (ARM)
export PATH="$PATH:/opt/homebrew/bin:/opt/homebrew/sbin"

# Append rust bin path
export PATH="$PATH:$HOME/.cargo/bin/"

# Append yarn path
export PATH="$PATH:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin"


### Optional loaders ###


@@ 86,7 92,7 @@ bindkey "^U" backward-kill-line
# set editor
export EDITOR="nova"

# fzf
# fzf (appends to $PATH)
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

# ripgrep