Commit Graph

4 Commits

Author SHA1 Message Date
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
Yan Pritzker
ce16c53989 Go back to using skwp prompt for rvm-prompt integration 2013-11-03 21:20:55 -06:00
Yan Pritzker
8004dd2025 Switch to steeef_simplified prompt which doesn't seem to be problematic like the skwp prompt with newer prezto installs [Fix #272 #286] 2013-08-04 16:28:07 -05:00
Yan Pritzker
ae2076bfd1 Prezto support! Make sure you run rake:install 2012-09-26 10:23:39 -07:00