diff --git a/dotfiles/zshenv b/dotfiles/zshenv index dc7db7f..2a64b12 100755 --- a/dotfiles/zshenv +++ b/dotfiles/zshenv @@ -9,8 +9,8 @@ if test -d ${HOME}/.local/bin ; then export PATH="${HOME}/.local/bin:${PATH}" fi -if [[ ! -o interactive ]]; then - if command -v mise 2>/dev/null ; then +if [[ ! -o interactive || ! -t 0 ]]; then + if command -v mise >/dev/null 2>&1 ; then eval "$(mise activate zsh --shims)" fi fi diff --git a/dotfiles/zshrc b/dotfiles/zshrc index b2122dc..53599e0 100755 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -181,11 +181,6 @@ have_command() { 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 if [[ $- == *i* ]] ; then source_if_existing $HOME/.aliases