• Andrew Baumann's avatar
    agnoster: cut down on fork/execs improve performance when not in a repo (#6210) · fbcda4d5
    Andrew Baumann authored
    * agnoster: improve perf with use of $jobstates (zsh/parameter module)
    
    This saves multiple fork/execs (for the subshell and wc) each
    time the prompt is rendered
    
    * agnoster: compute git repo_path only when in a git repo
    
    this avoids needlessly invoking git twice every time we render the prompt
    
    * agnoster: avoid subshell when rendering prompt
    
    Rather than forking a subshell to print the prompt, construct it
    incrementally by appending to $PROMPT.
    
    v2: fix incorrect CURRENT_BG
    v3: fix bzr and hg prompting
    
    Thanks @mcornella for the help.
    fbcda4d5
Name
Last commit
Last update
cache Loading commit data...
custom Loading commit data...
lib Loading commit data...
log Loading commit data...
plugins Loading commit data...
templates Loading commit data...
themes Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
README.md Loading commit data...
oh-my-zsh.sh Loading commit data...