Add OS type detection and custom coloring for root user#227
Open
bokysan wants to merge 2 commits into
Open
Conversation
This commit includes these new features: - *A segment which displays OS type.* This is especially useful if constantly logging into different computers with different systems and you need to know if you need to type `apk`, `apt`, `dnf`, or `yum`, for example. Enable it by setting the `theme_display_currentos` variable to `yes`. - *Padlock for SSH connection.* You may enable the padlock by setting the `theme_display_ssh_keylock` to `yes`. Padlock is shown only when accessing the terminal via a SSH session. The padlock is displayed _before_ the hostname. - *Split username and hostname segments.* This enable each segment to be coloured with a different background. Set `theme_display_split_user_hostname` to `yes` to enable this feature. - *Color root username differently.* When logged in as a `root` user, background (or the color of the username) will change to red. New colour has been added to the theme(s) for this feature.
Member
|
so many changes at once! it's a lot easier to discuss them separately :) |
Author
|
Kind of started fixing and ended up with a larger patch. :) Even so, I don't think it's a lot of code changes. If you want, we can still split it, though, into separate patches. Any suggestions? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit includes these new features:
if constantly logging into different computers with different
systems and you need to know if you need to type
apk,apt,dnf, oryum, for example. Enable it by setting thetheme_display_currentosvariable toyes.setting the
theme_display_ssh_keylocktoyes. Padlock isshown only when accessing the terminal via a SSH session.
The padlock is displayed before the hostname.
to be coloured with a different background. Set
theme_display_split_user_hostnametoyesto enable thisfeature.
rootuser, background (or the color of the username) will change
to red. New colour has been added to the theme(s) for this
feature.