From 114ae0892158826dddd528eb2318b7cb85e9bcfb Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Fri, 20 Mar 2026 12:22:43 +0100 Subject: [PATCH] zshrc: Fix position of homebrew/bin in $PATH --- templates/_zshrc.j2 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/templates/_zshrc.j2 b/templates/_zshrc.j2 index 60aa775..f4d0802 100644 --- a/templates/_zshrc.j2 +++ b/templates/_zshrc.j2 @@ -1,4 +1,15 @@ # Unified zshrc of Jannik Beyerstedt +typeset -aU path +{% if (override_os_family is defined) | ternary(override_os_family,ansible_facts['os_family']) == "Darwin" %} +path=('/opt/homebrew/bin' $path) +export PATH +{% else %} +# If you come from bash you might have to change your $PATH. +# path=('$HOME/bin' $path) +# path=('/usr/local/bin' $path) +# export PATH +{% endif %} + export TERM=xterm-256color {% if usersetup_virtualenvwrapper|default(false)|bool %} VIRTUALENVWRAPPER_PYTHON=$(which python3) @@ -7,9 +18,6 @@ VIRTUALENVWRAPPER_PYTHON=$(which python3) DEFAULT_USER="jannik" DISABLE_UPDATE_PROMPT=true -# If you come from bash you might have to change your $PATH. -# export PATH=$HOME/bin:/usr/local/bin:$PATH - # Path to your oh-my-zsh installation. export ZSH=$HOME/.oh-my-zsh