- Move zle keymap select code to prompt module
- Use vcs_info to get repo information
- Reduce number of functions required to generate prompt
- Set $PS1 once in setup to a bunch of $PS1_* variables. These variables are set
before each prompt. Doing this lets me change prompt themes more easily.
Move my prompt configuration to a prompt theme function in my $fpath. I call it
'loquacious'. The prompt is configured by the prompt_loquacious_setup function.
This change also necessitated a new function called prompt_colorize to generate
a string with the correct set of color escapes for the prompt.
Rather than figuring out the shell version inside the precmd functions, do the
computation once at startup and define precmd functions based on that. Just an
ever so slight increase in performance.
...cause I'm a nerd. :)
Mostly for profiling, but I think it's cool to have status occasionally. In the
process, I also did some clean up, moving some stuff between profile, rc, and
env.
- precmd_separator is now precmd_separator_info and prints a bunch of system
information
- New function precmd_git_rprompt prints branch name (more to come later)
- Use $precmd_functions to call a set of functions prior to each prompt
- Write a separator before each prompt made up of a line of hyphens and a
right-justified timestamp