diff options
| author | Igor Soarez <igor@soarez.org> | 2026-09-21 14:57:57 +0300 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-09-21 14:57:57 +0300 |
| commit | f671fb679b303e9f4de270414c008ad7129e6c25 (patch) | |
| tree | 13f0e15c7c659d818dc00f93392d4c732fce26ff /install.sh | |
| parent | b658c6231e888aedadd8568abbcf4c63c2a85d98 (diff) | |
supermaven off unless asked for; a blocked cask no longer ends install.sh
Supermaven was running everywhere. Its `condition` option reads the other way
round from what the code assumed -- `true` stops it -- so `return false` meant
"never stop", and the plugin loaded on InsertEnter, started its agent and
offered inline suggestions on every machine. Only blink's source for it was
off, which is what made it look disabled. It sends buffer context to a third
party, so it is now opt-in: DOT_SUPERMAVEN=1, in ~/.localenv where it is
wanted. Off, lazy keeps both plugins off disk entirely.
install.sh no longer stops at brew bundle either. A managed machine can refuse
a cask outright -- "disabled because it does not pass the macOS Gatekeeper
check" -- and brew bundle fails the whole run for one such entry, which left
the checkouts, nvim plugins and colour files undone. It warns and carries on;
brew has already named the entry.
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -53,7 +53,19 @@ if [[ "$(uname)" == "Darwin" ]]; then fi # --no-upgrade: install what is missing and leave what is there alone. Plain # `brew bundle` also upgrades every listed package that is out of date. - brew bundle --no-upgrade --file="${dotfiles_dir}/Brewfile" + # + # Not fatal: brew bundle fails the whole run if a single entry will not + # install, and on a managed machine that is routine -- a cask can be blocked + # by policy ("has been disabled because it does not pass the macOS Gatekeeper + # check"). One unavailable app is no reason to leave the checkouts, nvim + # plugins and colours undone, so this warns and carries on. brew has already + # said which entry failed, right above. + if ! brew bundle --no-upgrade --file="${dotfiles_dir}/Brewfile"; then + >&2 echo + >&2 echo "WARNING: some Brewfile entries did not install (see brew's output" + >&2 echo "above). Continuing with the rest of the setup." + >&2 echo + fi fi # 2. Checkouts the config reads: the pure prompt (config/zshrc falls back to a |
