diff options
author | Andrew Baumann <0xabu@users.noreply.github.com> | 2018-05-17 05:46:27 -0700 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-05-17 14:46:27 +0200 |
commit | fbcda4d5a92e023388259652652d154558e49ef3 (patch) | |
tree | c945e284694e6da8f1ed16eee9e40b508c075282 /plugins/sprunge/sprunge.plugin.zsh | |
parent | 3dab7e46e8815838c8099040e11a7ae9a30ba03d (diff) | |
download | zsh-fbcda4d5a92e023388259652652d154558e49ef3.tar.gz zsh-fbcda4d5a92e023388259652652d154558e49ef3.tar.bz2 zsh-fbcda4d5a92e023388259652652d154558e49ef3.zip |
agnoster: cut down on fork/execs improve performance when not in a repo (#6210)
* 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.
Diffstat (limited to 'plugins/sprunge/sprunge.plugin.zsh')
0 files changed, 0 insertions, 0 deletions