1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 04:10:07 +00:00
powerlevel10k/internal
Hartley McGuire b8c6c6f42f
Add chruby config to hide RUBY_ENGINE when "ruby"
Previously, the chruby segment looks like this for standard and
non-standard ruby implementations respectively:

```
Ruby ruby 3.1.2
Ruby truffleruby 3.0.3
```

While displaying the RUBY_ENGINE is helpful for non-standard
implementations, showing it for "ruby" results in "Ruby ruby" which
feels redundant.

This commit adds a new configuration option to disable showing the
RUBY_ENGINE when it is "ruby". Other values for RUBY_ENGINE will always
display as before:

```
Ruby 3.1.2
Ruby truffleruby 3.0.3
```

This also makes the formatting more similar to the asdf segment:

```
Ruby 3.1.2
Ruby truffleruby-22.3.0
```
2022-11-01 21:09:52 -04:00
..
configure.zsh don't auto-start configuration wizard if it's likely that zshrc is broken 2021-11-15 07:26:51 +01:00
icons.zsh rename arch to cpu_arch and rewrite it (#1752) 2022-10-09 11:54:02 +02:00
notes.md notes 2020-06-15 17:56:32 +02:00
p10k.zsh Add chruby config to hide RUBY_ENGINE when "ruby" 2022-11-01 21:09:52 -04:00
parser.zsh don't leak 'token' local variable in parser (#1407) 2021-05-24 09:19:13 +02:00
wizard.zsh fix a bug introduced in cf1b586515 2022-10-05 11:26:40 +02:00
worker.zsh survive broken $TMPDIR 2022-01-26 15:03:22 +01:00