Update zshrc order

This commit is contained in:
David Tomaschik
2026-02-20 16:19:09 -08:00
parent 8cac819127
commit 1c0c5dd32b

View File

@@ -181,6 +181,11 @@ have_command() {
command -v "${1}" &>/dev/null command -v "${1}" &>/dev/null
} }
# Pip packages and other local resources
if test -d ${HOME}/.local/bin ; then
PATH="${PATH}:${HOME}/.local/bin"
fi
# Source extras and aliases if interactive # Source extras and aliases if interactive
if [[ $- == *i* ]] ; then if [[ $- == *i* ]] ; then
source_if_existing $HOME/.aliases source_if_existing $HOME/.aliases
@@ -252,6 +257,10 @@ if [[ $- == *i* ]] ; then
source "${HOME}/.iterm2_shell_integration.zsh" || true source "${HOME}/.iterm2_shell_integration.zsh" || true
# mise, if installed # mise, if installed
command -v mise >/dev/null 2>&1 && eval "$(mise activate zsh)" command -v mise >/dev/null 2>&1 && eval "$(mise activate zsh)"
if test -z "${PAGER}" && command -v less >/dev/null 2>&1; then
export PAGER="less"
fi
fi # End interactive-only block fi # End interactive-only block
# In case ack is named ack-grep # In case ack is named ack-grep
@@ -259,15 +268,6 @@ if [ -x /usr/bin/ack-grep ] ; then
alias ack='/usr/bin/ack-grep' alias ack='/usr/bin/ack-grep'
fi fi
# Pip packages and other local resources
if test -d ${HOME}/.local/bin ; then
PATH="${PATH}:${HOME}/.local/bin"
fi
if test -z "${PAGER}" && command -v less >/dev/null 2>&1; then
export PAGER="less"
fi
# I want this first always # I want this first always
PATH="${HOME}/bin:${PATH}" PATH="${HOME}/bin:${PATH}"