summaryrefslogtreecommitdiff
path: root/oh-my-zsh.sh
diff options
context:
space:
mode:
authorMarc Khouri <marc@khouri.ca>2024-07-12 12:18:20 -0400
committerGitHub <noreply@github.com>2024-07-12 18:18:20 +0200
commitfa583cfb87b80e3f7d7577c8b62b7d1385c01337 (patch)
tree98562bc2fc18f0fb03a58e44a5a3d77fcd53c38b /oh-my-zsh.sh
parent5b37e218e5275c11cb5fecc61f943e6cea3e64bf (diff)
downloadzsh-fa583cfb87b80e3f7d7577c8b62b7d1385c01337.tar.gz
zsh-fa583cfb87b80e3f7d7577c8b62b7d1385c01337.tar.bz2
zsh-fa583cfb87b80e3f7d7577c8b62b7d1385c01337.zip
refactor(pygmalion): simplify theme logic and prompt sequences (#12550)
* Simplify Pygmalion Theme The Pygmalion theme previously had some logic for counting line length and taking action based on line length. The action was removed in c52441b624c0b1fa075bc6110032bd4e75311909, but the counting still needlessly happens. This commit removes the code to count line length, and simplifies the Pygmalion theme by moving the "precmd" into the setup. As a bonus unintended side effect, this makes the Pygmalion theme compatible with the current async prompting logic (i.e. after this change, Pygmalion is no longer affected by https://github.com/ohmyzsh/ohmyzsh/issues/12328) * refactor(pygmalion): redo and simplify prompt sequences With this commit we put the minimal needed color resets, i.e. only when we don't control the previous text we need to do a full reset. Otherwise we can just use %F{} to change only the foreground color. Co-authored-by: Marc Cornellà <marc@mcornella.com>
Diffstat (limited to 'oh-my-zsh.sh')
0 files changed, 0 insertions, 0 deletions