# Role: mobile (the Mac - macOS on Apple Silicon) # # Homebrew's shellenv is NOT here. It belongs in .zprofile, which login shells # read and .zshrc does not cover: a non-interactive "ssh mac " sources # neither .zshrc nor anything it pulls in, so a PATH set here leaves brew # invisible. That is not theory - during the design phase "ssh mac brew # --version" came back empty and was briefly taken as evidence that Homebrew # was not installed at all. It was; the PATH just was not there. # Role colour. Only takes effect where powerlevel10k is installed, which on # this machine it is not yet - the ys theme has no equivalent. Kept so it # applies the moment p10k arrives. typeset -g POWERLEVEL9K_CONTEXT_BACKGROUND=green # Homebrew's own behaviour. Auto-update on every invocation turns a one-second # install into a minute. export HOMEBREW_AUTO_UPDATE_SECS="86400" export HOMEBREW_NO_AUTO_UPDATE="0" # bench inside the ERPNext compose stack, without remembering where it lives. # The -T is needed when there is no terminal, or docker compose refuses. bench() { local tty_flag=() [[ -t 0 && -t 1 ]] || tty_flag=(-T) docker compose --project-directory ~/work/erpnext exec "${tty_flag[@]}" backend bench "$@" } # The previous configuration exported PYTHONPATH=/usr/lib/python3.9/site-packages. # That is a Linux path and does not exist on macOS at all; beastix and shron # carried the same line pointing at 3.9 and 3.4 respectively. None are kept.