Files
drunkendotfiles/zsh/theme.zsh
dissimulo af13d65e7d zsh/theme.zsh: drop ruby version from right prompt
Blank RPROMPT after prompt skwp loads so the right side stays clean.
2026-04-21 08:19:34 -07:00

19 lines
664 B
Bash

# Re-add prezto module function paths to $fpath. Some flows (compinit's
# insecure-directory check, group-writable home dirs) can strip these,
# which leaves skwp's precmd calling autoload-declared-but-unfindable
# functions like git-info/ruby-info, producing
# "zsh: bad math expression: operand expected at '%F{135}%n%...'"
# and cascading errors in zsh-syntax-highlighting.
() {
local module dir
for module in helper git ruby; do
dir="${ZDOTDIR:-$HOME}/.zprezto/modules/$module/functions"
[[ -d $dir && ${fpath[(I)$dir]} -eq 0 ]] && fpath=($dir $fpath)
done
}
prompt skwp
# Clear the ruby version from the right side of the prompt.
RPROMPT=''