modern theme, added virtualenv name display, changed first bracket and second bracket #1812
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.
Description
Changed the first brackets of the theme to show the username, and the second brackets to show the current working directory
Also added a function to show the name of the python virtualenv, when its being used.
Motivation and Context
Looks better, and the second bracket is actually used for something, because previously it was calling (battery_charge) and not working.
Having the name of the python virtualenv showing is useful information.
How Has This Been Tested?
No errors
Entering and leaving a virtualenv have the desired behaviour on the terminal.
Screenshots (if appropriate):
How it looks after the changes: https://imgur.com/3yQzH5m
(using Dracula terminal theme)
Types of changes
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.