ohmyzsh/themes
Marc Khouri fa583cfb87
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 c52441b624, 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>
2024-07-12 18:18:20 +02:00
..
3den.zsh-theme Themes: switch to using ruby_prompt_info() 2019-05-08 08:45:34 +02:00
adben.zsh-theme style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
af-magic.zsh-theme fix(af-magic): fix logic for separator with virtualenv (#11518) 2023-02-23 22:32:40 +01:00
afowler.zsh-theme feat(afowler): add mercurial support 2021-12-13 11:17:13 +01:00
agnoster.zsh-theme Revert "feat(agnoster): add anaconda env information (#12434)" 2024-05-22 09:15:11 +02:00
alanpeabody.zsh-theme Themes: switch to using ruby_prompt_info() 2019-05-08 08:45:34 +02:00
amuse.zsh-theme feat(amuse): add whitespace before virtualenv (#12423) 2024-05-15 19:27:21 +02:00
apple.zsh-theme fix(apple): go back to previous icon 2023-05-03 11:19:41 +02:00
arrow.zsh-theme Remove non-existing %p prompt sequence from themes 2020-08-04 15:55:04 +02:00
aussiegeek.zsh-theme refactor(themes): use ruby_prompt_info everywhere 2021-12-13 17:14:25 +01:00
avit.zsh-theme style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
awesomepanda.zsh-theme fix(awesomepanda): new line wrap 2024-01-25 10:23:38 +01:00
bira.zsh-theme feat(bira): add support for kube-ps1 prompt (#8437) 2024-02-12 09:43:52 +01:00
blinks.zsh-theme
bureau.zsh-theme fix(bureau): properly display git stash info (#11711) 2023-05-24 14:32:26 +02:00
candy-kingdom.zsh-theme fix: quote % in box_name prompt functions 2022-01-03 13:50:52 +01:00
candy.zsh-theme
clean.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
cloud.zsh-theme Remove non-existing %p prompt sequence from themes 2020-08-04 15:55:04 +02:00
crcandy.zsh-theme crcandy: use 24h format in prompt (#7926) 2019-06-14 14:46:08 +02:00
crunch.zsh-theme style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
cypher.zsh-theme
dallas.zsh-theme chore: fix spelling errors across the project (#10459) 2021-12-01 12:20:31 +01:00
darkblood.zsh-theme
daveverwer.zsh-theme
dieter.zsh-theme style: declare globals properly 2022-01-05 09:23:54 +01:00
dogenpunk.zsh-theme fix: disable log.showSignature in git log calls 2022-01-10 19:39:05 +01:00
dpoggi.zsh-theme
dst.zsh-theme themes: fix prompt verbosity on window resize 2019-03-25 17:05:50 +01:00
dstufft.zsh-theme Fix tilde substitution in theme prompts 2018-10-07 23:01:25 +02:00
duellj.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
eastwood.zsh-theme style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
edvardm.zsh-theme Remove non-existing %p prompt sequence from themes 2020-08-04 15:55:04 +02:00
emotty.zsh-theme style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
essembeh.zsh-theme fix(essembeh): use async prompt (#12512) 2024-06-17 21:38:21 +02:00
evan.zsh-theme Change description for Evan's theme to something neutral (#6304) 2019-09-08 15:05:20 +02:00
fino-time.zsh-theme feat(fino-time): add conda environment (#11785) 2023-07-25 10:25:07 +02:00
fino.zsh-theme fix: quote % in box_name prompt functions 2022-01-03 13:50:52 +01:00
fishy.zsh-theme feat(fishy): add color to username (#12369) 2024-04-23 10:54:00 +02:00
flazz.zsh-theme fix: use $USERNAME guaranteed to always be defined in zsh 2021-03-25 12:08:00 +01:00
fletcherm.zsh-theme
fox.zsh-theme
frisk.zsh-theme fix(frisk): fix color typo in PS2 (#10839) 2022-04-09 15:18:24 +02:00
frontcube.zsh-theme fix(frontcube): fix escape of reset color sequence (#10921) 2022-07-12 19:44:32 +02:00
funky.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
fwalch.zsh-theme Remove non-existing %p prompt sequence from themes 2020-08-04 15:55:04 +02:00
gallifrey.zsh-theme Actions to take after repository migration is complete (#8394) 2019-11-20 17:26:18 -08:00
gallois.zsh-theme feat(gallois): big rewrite to gallois theme (#11867) 2023-09-06 11:18:36 +02:00
garyblessington.zsh-theme
gentoo.zsh-theme fix: fix svn branch output in themes: apple, gentoo, kolo, zhann (#10751) 2022-03-03 17:53:03 +01:00
geoffgarside.zsh-theme
gianu.zsh-theme
gnzh.zsh-theme fix(gnzh): Don't show .local for local hostnames in theme 2023-10-13 15:38:13 -07:00
gozilla.zsh-theme Remove non-existing %p prompt sequence from themes 2020-08-04 15:55:04 +02:00
half-life.zsh-theme feat(half-life): add virtualenv prompt (#11708) 2023-05-23 08:46:46 +02:00
humza.zsh-theme
imajes.zsh-theme
intheloop.zsh-theme
itchy.zsh-theme Themes: switch to using ruby_prompt_info() 2019-05-08 08:45:34 +02:00
jaischeema.zsh-theme Themes: switch to using ruby_prompt_info() 2019-05-08 08:45:34 +02:00
jbergantine.zsh-theme Remove non-existing %p prompt sequence from themes 2020-08-04 15:55:04 +02:00
jispwoso.zsh-theme
jnrowe.zsh-theme style: remove VCS_INFO svn settings from themes that don't enable it 2022-03-03 17:49:12 +01:00
jonathan.zsh-theme style: declare globals properly 2022-01-05 09:23:54 +01:00
josh.zsh-theme style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
jreese.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
jtriley.zsh-theme Remove non-existing %p prompt sequence from themes 2020-08-04 15:55:04 +02:00
juanghurtado.zsh-theme
junkfood.zsh-theme style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
kafeitu.zsh-theme Remove non-existing %p prompt sequence from themes 2020-08-04 15:55:04 +02:00
kardan.zsh-theme
kennethreitz.zsh-theme
kiwi.zsh-theme Detect dependency plugins in candy-kingdom and kiwi themes 2020-02-11 17:43:59 +01:00
kolo.zsh-theme fix: fix svn branch output in themes: apple, gentoo, kolo, zhann (#10751) 2022-03-03 17:53:03 +01:00
kphoen.zsh-theme
lambda.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
linuxonly.zsh-theme style: remove VCS_INFO svn settings from themes that don't enable it 2022-03-03 17:49:12 +01:00
lukerandall.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
macovsky-ruby.zsh-theme Themes: switch to using ruby_prompt_info() 2019-05-08 08:45:34 +02:00
macovsky.zsh-theme Themes: switch to using ruby_prompt_info() 2019-05-08 08:45:34 +02:00
maran.zsh-theme Remove duplicate space on the maran theme (#7454) 2018-12-31 11:12:55 -08:00
mgutz.zsh-theme
mh.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
michelebologna.zsh-theme fix(michelebologna): use blue instead of white (#11810) 2023-07-23 19:44:30 +02:00
mikeh.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
miloshadzic.zsh-theme
minimal.zsh-theme perf(mercurial): optimize utility functions 2021-12-13 10:50:50 +01:00
mira.zsh-theme Themes: switch to using ruby_prompt_info() 2019-05-08 08:45:34 +02:00
mlh.zsh-theme style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
mortalscumbag.zsh-theme style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
mrtazz.zsh-theme
murilasso.zsh-theme refactor(themes): use ruby_prompt_info everywhere 2021-12-13 17:14:25 +01:00
muse.zsh-theme muse: clean up theme 2020-06-10 12:57:01 +02:00
nanotech.zsh-theme
nebirhos.zsh-theme nebirhos: use short hostname in prompt 2020-03-26 12:39:51 +01:00
nicoulaj.zsh-theme chore: fix spelling errors across the project (#10459) 2021-12-01 12:20:31 +01:00
norm.zsh-theme norm: add hg prompt (#6725) 2020-02-27 18:28:08 +01:00
obraun.zsh-theme feat(obraun): display time with leading zeros (#10289) 2021-10-13 10:00:46 +02:00
oldgallois.zsh-theme feat(oldgalois): add theme (#11880) 2023-09-11 11:05:50 +02:00
peepcode.zsh-theme peepcode: add virtualenv prompt and fix git calls 2020-06-08 20:36:27 +02:00
philips.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
pmcgee.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
pygmalion-virtualenv.zsh-theme fix(themes): fix potential command injection in pygmalion, pygmalion-virtualenv and refined 2021-11-11 22:45:40 +01:00
pygmalion.zsh-theme refactor(pygmalion): simplify theme logic and prompt sequences (#12550) 2024-07-12 18:18:20 +02:00
random.zsh-theme fix(random): fix negated logic in ZSH_THEME_RANDOM_QUIET 2021-12-28 11:04:13 +01:00
re5et.zsh-theme fix: use $USERNAME guaranteed to always be defined in zsh 2021-03-25 12:08:00 +01:00
refined.zsh-theme docs: fix some capitalization typos(#11293) 2022-11-04 19:34:02 +01:00
rgm.zsh-theme
risto.zsh-theme
rixius.zsh-theme
rkj-repos.zsh-theme fix(rkj-repos): check if ~/.hgrc exists (#12148) 2024-01-08 11:02:20 +01:00
rkj.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
robbyrussell.zsh-theme fix(robbyrussell): line wrapping for some systems (#12058) 2023-11-24 09:45:32 +01:00
sammy.zsh-theme
simonoff.zsh-theme fix: declare variables as global when using typeset 2021-12-16 10:16:53 +01:00
simple.zsh-theme feat(simple): add color to git status indicator (#4962) 2022-01-24 11:47:30 +01:00
skaro.zsh-theme
smt.zsh-theme fix: disable log.showSignature in git log calls 2022-01-10 19:39:05 +01:00
Soliah.zsh-theme style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
sonicradish.zsh-theme style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
sorin.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
sporty_256.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
steeef.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
strug.zsh-theme
sunaku.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
sunrise.zsh-theme fix: use $USERNAME guaranteed to always be defined in zsh 2021-03-25 12:08:00 +01:00
superjarin.zsh-theme
suvash.zsh-theme Themes: switch to using ruby_prompt_info() 2019-05-08 08:45:34 +02:00
takashiyoshida.zsh-theme
terminalparty.zsh-theme
theunraveler.zsh-theme
tjkirch_mod.zsh-theme themes: fix prompt verbosity on window resize 2019-03-25 17:05:50 +01:00
tjkirch.zsh-theme themes: fix prompt verbosity on window resize 2019-03-25 17:05:50 +01:00
tonotdo.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
trapd00r.zsh-theme style: remove VCS_INFO svn settings from themes that don't enable it 2022-03-03 17:49:12 +01:00
wedisagree.zsh-theme style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
wezm.zsh-theme
wezm+.zsh-theme
wuffers.zsh-theme
xiong-chiamiov-plus.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
xiong-chiamiov.zsh-theme use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
ys.zsh-theme fix(ys): fix $VIRTUAL_ENV check if nounset is enabled (#9915) 2022-01-27 21:48:42 +01:00
zhann.zsh-theme fix: fix svn branch output in themes: apple, gentoo, kolo, zhann (#10751) 2022-03-03 17:53:03 +01:00