Files
drunkendotfiles/zsh
dissimulo 45fc664976 zsh/theme.zsh: restore prezto fpath before loading skwp prompt
The skwp prompt's precmd calls git-info and ruby-info (prezto module
functions that live in ~/.zprezto/modules/{git,ruby}/functions). On
interactive shell startup, something — likely compinit's
insecure-directory pruning when parent dirs are group-writable —
strips those paths from $fpath after pmodload seeded them.

When precmd then references the autoload-declared-but-unfindable
functions, zsh fails to locate the definition file, aborts the
prompt render midway through, and zsh-syntax-highlighting latches
onto the broken half-prompt. Observed symptoms:

  prompt_skwp_precmd: git-info: function definition file not found
  prompt_skwp_precmd: ruby-info: function definition file not found
  zsh: bad math expression: operand expected at '%F{135}%n%...'
  _zsh_highlight_call_widget:2: bad math expression: operand...

Defensive re-seed: before calling 'prompt skwp', prepend the helper,
git, and ruby module function dirs to $fpath if they aren't already
present. Idempotent, cheap, and masks any upstream stripping
regardless of cause.
2026-04-21 08:17:21 -07:00
..
2016-04-28 11:52:07 -05:00
2020-11-26 19:28:55 -03:00
2018-05-15 17:19:27 -05:00
2017-06-06 17:58:04 +02:00
2012-09-11 10:19:13 -07:00
2015-06-27 15:49:28 -07:00
2012-11-16 12:04:34 -06:00
2012-10-12 00:14:33 -07:00
2012-03-21 15:33:34 -04:00