1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 03:25:42 +08:00
Commit Graph

9 Commits

Author SHA1 Message Date
Marc Cornellà
7d03ea18ed
fix: declare variables as global when using typeset
Fixes fb86ec77
2021-12-16 10:16:53 +01:00
Marc Cornellà
fb86ec7749
style: use typeset for dynamic variable names 2021-12-14 13:09:02 +01:00
Marc Cornellà
e3bb6e685d
refactor(themes): use ruby_prompt_info everywhere 2021-12-13 17:14:25 +01:00
Marc Cornellà
aa99472c8a
style(simonoff): fix code style and optimize use of variables 2021-12-13 17:08:53 +01:00
Marc Cornellà
065e8ebdd0
style(jonathan): fix code style in jonathan theme 2021-12-13 17:08:52 +01:00
Andrew Janke
299cd4777a Themes: switch to using ruby_prompt_info()
Changes themes displaying RVM or other Ruby version info to use the central
ruby_prompt_info function. This supports more Ruby versioning mechanisms,
reduces copy-and-paste code, and avoids "zsh: no such file or directory: rvm-prompt"
when run on machines that do not have RVM installed.

Changes the prefix/suffix variable names to ZSH_THEME_RUBY_PROMPT_PREFIX and
ZSH_THEME_RUBY_PROMPT_SUFFIX, since they apply to all Ruby versioning mechanisms,
not just RVM.

Allows empty ZSH_THEME_RUBY_PROMPT_PREFIX and ZSH_THEME_RUBY_PROMPT_SUFFIX.
2019-05-08 08:45:34 +02:00
Marc Cornellà
2193135ebc Clean up appearance lib file and redundant colors calls in other files 2015-02-10 19:22:50 +01:00
Alexander Simonov
27841ca7c1 Set default for rvm prompt prefix/suffix 2012-12-02 20:30:25 +02:00
Alexander Simonov
f9de64460c Simonoff theme 2012-12-02 19:56:17 +02:00