The base defines update only where yay exists. The Mac had its own, wrapping brew update, upgrade, cask upgrade, greedy upgrade and cleanup, and it was lost in the checkout. It was the only real loss there. The eight macports aliases that also went are no loss at all - MacPorts is not installed on that machine, so pc, pi, pli and the rest all pointed at a command that does not exist. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
37 lines
1.8 KiB
Bash
37 lines
1.8 KiB
Bash
# 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 <command>" 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.
|
|
|
|
# The base defines "update" only where yay exists, which is the two Arch
|
|
# machines. This is the Mac's equivalent, and it was the one thing genuinely
|
|
# lost in the first checkout here - the eight macports aliases that also
|
|
# disappeared pointed at a "port" command this machine does not have.
|
|
alias update="brew update && brew upgrade && brew upgrade --cask && brew upgrade --greedy && brew cleanup"
|