19 lines
664 B
Bash
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=''
|