This repository has been archived by the owner on Apr 24, 2020. It is now read-only.
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.
User selectable rendering engine (generator)
This is a total replacement for the master branch.
General updates
generators/default
is loaded ifPOWERLEVEL9K_GENERATOR="default"
(or not defined)generators/async
is loaded ifPOWERLEVEL9K_GENERATOR="async"
Async all the segments #344serialize_segment
) meaning one definition for both engines plugin structure #437segments/develop.zsh
segments/network.zsh
segments/system.zsh
segments/todo.zsh
segments/vcs.zsh
segments/virtual.zsh
vi_mode
andcursor shape
are only loaded when theasync
generator is used:[[ "${POWERLEVEL9K_GENERATOR}" == "async" ]] && source $script_location/segments/vi_mode.zsh || prompt_vi_mode() {} # not working in default!
Detailed updates
generators/default
now has aserialize_segments
wrapper function to enable all segments to be written once for both generatorsprompt_battery
has support for dynamic icon switching and dynamic background color changing Improvebattery
segment #373 / Battery #468prompt_dir
has been updated with colored separators and bold/color on last directory, as well as configurable home Make home shorthand configurable for dir prompt #461vi_mode
has support for changing cursor shape (which cannot be tested at present) vi_mode suddenly stopped working #319zshrc-example.zsh
is nearly up to date with all the changes madeTODO
tests
have to be updated for generators and for the following segments:default
generatorasync
generatorprompt_date
returns the dateprompt_host
returns the local host or SSH Improve context segment #459 / Host and user #467prompt_time
returns the timeprompt_user
returns the username or root Improve context segment #459 / Host and user #467prompt_dir
for icons/background/home Make home shorthand configurable for dir prompt #461awesome-fontconfig
codepoints #382dir
segment, truncate from right with whitespace in path Add test fordir
segment, truncate from right with whitespace in path #425segments/*
write function descriptions for missing onesvi_mode
can be supported indefault
enginePOWERLEVEL9K_RPROMPT_ICON_LEFT=true
todefault
generatordefault
generatordefault
generator for_joined
segments