1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-21 03:41:57 +00:00
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 blinks theme works with light and dark Solarized 2012-02-17 16:58:34 -05:00
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 localization support for clock in candy theme 2016-03-30 21:46:39 +02:00
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 Fix graphical bug in cypher theme when return status is non-zero 2015-08-16 22:53:07 -06:00
dallas.zsh-theme chore: fix spelling errors across the project (#10459) 2021-12-01 12:20:31 +01:00
darkblood.zsh-theme Fixed darkblood theme as in issue #23. 2009-11-09 07:15:06 +08:00
daveverwer.zsh-theme New theme "daveverwer", based on "geoffgarside". 2010-05-08 04:30:50 +08:00
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 Added 'dpoggi' theme 2011-07-12 23:20:21 -04:00
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 add fletcherm theme; a slightly modified copy of an old tonotdo theme 2010-08-19 22:29:17 +08:00
fox.zsh-theme Remove all copyright information in themes. Closes #2587 2014-03-08 23:51:59 +06:00
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 Fixed all themes so tab-completion doesn't move the cursor to a weird position 2009-11-09 22:05:00 +01:00
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 Added risto theme and made git.zsh themable 2009-09-14 12:42:53 -04:00
gianu.zsh-theme Remove all copyright information in themes. Closes #2587 2014-03-08 23:51:59 +06:00
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 added humza.zsh-theme 2011-05-30 19:10:26 -04:00
imajes.zsh-theme minimalist 2009-09-22 23:02:18 +01:00
intheloop.zsh-theme Remove all copyright information in themes. Closes #2587 2014-03-08 23:51:59 +06:00
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 Update theme "jispwoso" to support ret status and git 2014-12-11 19:47:29 +08:00
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 Move current_branch() from git plugin to core lib/git.zsh 2015-12-14 20:28:37 -05:00
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 Change all hostname calls for $HOST or $SHORT_HOST 2014-11-06 18:33:56 +01:00
kennethreitz.zsh-theme update kennethreitz.zsh-theme 2016-02-14 04:19:46 -05:00
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 Remove all copyright information in themes. Closes #2587 2014-03-08 23:51:59 +06:00
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 my theme 2010-05-08 04:20:59 +08:00
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 Adds my theme 2011-06-01 12:45:15 +02:00
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 add simple mrtazz theme based on robbyrussell 2010-08-19 07:27:05 -07:00
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 themes/nanotech: Use the new built-in zsh color variables. 2010-11-14 16:53:13 -06:00
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 Add my preferred prompt 2010-05-08 04:26:47 +08:00
risto.zsh-theme Added risto theme and made git.zsh themable 2009-09-14 12:42:53 -04:00
rixius.zsh-theme Remove all copyright information in themes. Closes #2587 2014-03-08 23:51:59 +06:00
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 Black on white theme inspired by Sam Stephenson's terminal screenshot on https://github.com/sstephenson/rbenv 2011-12-26 13:16:26 +10:00
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 added skaro theme 2010-05-08 04:32:35 +08:00
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 Added a possibility to display the remote branch and the number of commits you are ahead or behind 2015-06-10 14:36:54 +02:00
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 Merge simplified superjarin theme 2014-11-10 18:42:31 -08:00
suvash.zsh-theme Themes: switch to using ruby_prompt_info() 2019-05-08 08:45:34 +02:00
takashiyoshida.zsh-theme Added my own theme. 2010-06-05 23:24:21 +08:00
terminalparty.zsh-theme terminal party show exit status with color 2014-07-08 21:51:48 -07:00
theunraveler.zsh-theme Updating theunraveler theme to include more detailed git info. 2010-12-19 21:08:21 -06:00
tjkirch.zsh-theme themes: fix prompt verbosity on window resize 2019-03-25 17:05:50 +01:00
tjkirch_mod.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 Added customized version of the wezm theme (mainly added username/host in the prompt). 2010-05-28 08:14:13 +08:00
wezm.zsh-theme Add my own theme 2009-10-08 09:50:32 +11:00
wuffers.zsh-theme adding rbenv support to all the rvm themes 2012-01-23 20:42:54 -05:00
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