master
(Fix fatal errors emitted by untracked file check in vcs.zsh)vcs
segment/etc/os-release
does not existrbenv
segment is no longer a default segment in the LPROMPT.etc
state for dir
segment in docssudo
detection got crazy, there. sorry, everyone.bc
for load
segment.dir
segment.grep
aliases.PYENV
properly, now.public_ip
segment for macOS.vpn_ip
segment naming.context
segment now grabs user with command rather than env.su -
didn't change context segment.load
segment.laravel_version
Displays the current laravel version.
load
segment now has configurable averages.dir
segment to add dir_writable
feature.status
segment can now display POSIX signal name of exit code.teardown
command to turn off P9k prompt.go_version
segment.nvm
rvm
segment can now support usernames with dashes.battery
segment. Check out the README to
read more!host
and user
Provides two separate segments for host
and user
in case you don't wont both
in one (per the context
segment).
newline
Allows you to split segments across multiple lines.
kubecontext
Shows the current context of your kubectl
configuration.
vpn
Shows current vpn
interface.
~
).nerdfont-fontconfig
option.get_icon_names
function can now print sorted output, and show which
icons users have overridden.A new script debug/iterm.zsh
was added for easier spotting problems with your iTerm2 configuration.
A new script debug/font-issues.zsh
was added, so that problems with your font could be spotted easier.
ram
changesThe ram
segment now shows the available ram instead of free.
host
and user
The user and host segments allow you to have different icons and colors for both the user and host segments depending on their state.
load
and ram
segments for BSD.status
segment in non-verbose mode.There is now an option to use nerd-fonts with P9k. Simply configure the nerdfont-fontconfig
, and you'll be set!
vcs
changesThe VCS segment can now display icons for remote repo hosting services, including Github, Gitlab, and 'other'.
dir
changesAdded an option to configure the path separator. If you want something
else than an ordinary slash, you could set
POWERLEVEL9K_DIR_PATH_SEPARATOR
to whatever you want.
truncate_with_package_name
now searches for composer.json
as wellNow composer.json
files are searched as well. By default package.json
still takes
precedence. If you want to change that, set POWERLEVEL9K_DIR_PACKAGE_FILES=(composer.json package.json)
.
command_execution_time
addedShows the duration a command needed to run. By default only durations over 3 seconds are shown (can be adjusted by setting POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD).
dir_writable
addedThis segment displays a lock icon if your user has no write permissions in the current folder.
disk_usage
addedThis segment will show the usage level of your current partition.
public_ip
addedFetches your Public IP (using ident.me) and displays it in your prompt.
swift_version
addedThis segment displays the version of Swift that is installed / in your path.
detect_virt
addedDetects and reports if you are in a virtualized session using systemd
.
load
and ram
changesThese two segments now support BSD.
vcs
changesPOWERLEVEL9K_VCS_HIDE_TAGS
to true.anaconda
changesSpeed improvements for anaconda
segment.
From now on, development makes use of a CI system "travis".
vcs
changesThe default state was renamed to clean
. If you overrode foreground
or background color in the past, you need to rename your variables to:
POWERLEVEL9K_VCS_CLEAN_FOREGROUND='cyan'
POWERLEVEL9K_VCS_CLEAN_BACKGROUND='white'
Additionaly the vcs segment now has an untracked
state which
indicates that you have untracked files in your repository.
The foreground color of actionformat is now configurable via:
POWERLEVEL9K_VCS_ACTIONFORMAT_FOREGROUND='green'
Also, the vcs segment uses the foreground color it was configured to.
That said, the variables POWERLEVEL9K_VCS_FOREGROUND
and
POWERLEVEL9K_VCS_DARK_FOREGROUND
are no longer used. Instead use
the proper variable POWERLEVEL9K_VCS_<STATE>_FOREGROUND
to change
foreground color.
dir
Shortening StrategiesThere is now a path shortening strategy that will use the package.json
file to
shorten your directory path. See the documentation for the dir
segment for more
details.
Also, the shorten delimiter was changed to an unicode ellipsis. It is configurable
via POWERLEVEL9K_SHORTEN_DELIMITER
.
rbenv
changesThe rbenv
segment now makes use of the full rbenv command, so the correct
ruby version is now shown if it differs from the globally one.
node
, nvm
SegmentsImprovements to speed / reliability.
ram
changesThe ram
segment was split up into ram
and swap
. The
POWERLEVEL9K_RAM_ELEMENTS
variable is obsolete.
swap
addedDue to the split up of the ram segment, this one was created. It shows the currently used swap size.
nodeenv
addedAdded new nodeenv
segment that shows the currently used node environment.
aws_eb_env
addedThis segment displays the current Elastic Beanstalk environment.
chruby
addedAdded new chruby
segment to support this version manager.
docker_machine
addedAdded new docker_machine
segment that will show your Docker machine.
anaconda
addedA new segment anaconda
was added that shows the current used
anaconda environment.
pyenv
addedThis segment shows your active python version as reported by pyenv
.
vcs
changesA new state UNTRACKED
was added to the vcs
segment. So we now
have 3 states for repositories: UNTRACKED
, MODIFIED
, and the
default state. The UNTRACKED
state is active when there are files
in the repository directory which have not been added to the repo
(the same as when the +
icon appears). The default color for the
UNTRACKED
state is now yellow, and the default color for the
MODIFIED
state is now read, but those colors can be changed by
setting these variables, for example:
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND='black'
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='white'
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND='green'
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND='blue'
dir
changesA new state HOME_SUBFOLDER
was added. So if you want to overwrite
colors for this segment, also set this variables:
POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND='black'
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND='white'
background_jobs
changesNow displays the number of background jobs if there's more than 1. You can disable it by setting :
POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false
Now almost every segment can have a visual identifier, which is an icon whose color could be adjusted by users.
You can now merge segments together by suffixing the segment name with "_joined". For Developers: Be aware that the order of parameters in left/right_prompt_segment has changed. Now a boolean parameter must be set as second parameter (true if joined).
dir
changesThis segment now has "state", which means you now can change the colors seperatly depending if you are in your homefolder or not. Your variables for that should now look like:
POWERLEVEL9K_DIR_HOME_BACKGROUND='green'
POWERLEVEL9K_DIR_HOME_FOREGROUND='cyan'
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND='red'
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND='yellow'
status
changesThe status
segment was split up into three segments. background_jobs
prints
an icon if there are background jobs. root_indicator
prints an icon if the user
is root. The status
segment focuses now on the status only.
The status
segment also now has "state". If you want to overwrite the colors,
you have to add the state to your variables:
POWERLEVEL9K_STATUS_ERROR_BACKGROUND='green'
POWERLEVEL9K_STATUS_ERROR_FOREGROUND='cyan'
POWERLEVEL9K_STATUS_OK_BACKGROUND='red'
POWERLEVEL9K_STATUS_OK_FOREGROUND='yellow'
custom_command
addedA new segment that allows users to define a custom command was added.
virtualenv
changesThis segment now respects VIRTUAL_ENV_DISABLE_PROMPT
. If this variable is set
to true
, the segments does not get rendered.
load
changesThe load
segement was split and a new segment ram
was extracted. This new
segment is able to show the free ram and used swap.
vcs
changesThis prompt uses the VCS_INFO
subsystem by ZSH. From now on this subsystem
is only invoked if a vcs
segment was configured.
rvm
changesThis segment now does not invoke RVM directly anymore. Instead, is relys on the circumstance that RVM was invoked beforehand and just reads the environment variables '$GEM_HOME' and '$MY_RUBY_HOME'. It also now displays the used gemset.
battery
addedA new segment that shows the battery status of your laptop was added.
go_version
addedThis segment shows the GO version.
nvm
addedThis segment shows your NodeJS version by using NVM (and if it is not 'default').
todo
addedThis segment shows your ToDos from todo.sh.
rust_version
addedThis segment shows your local rust version.
longstatus
is now status
The segments got merged together. To show the segment only if an error occurred,
set POWERLEVEL9K_STATUS_VERBOSE=false
(this is the same behavior as the old
status
segment.
All icons can now be overridden by setting a variable named by the internal icon
name. You can get a full list of icon name by calling get_icon_names
.
This separator can be controlled by setting POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR
or POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR
. By default this separator is
printed in the foreground color.
dir
segment has different strategies for truncationNow you can choose between truncate_middle
or truncate_from_right
by setting
POWERLEVEL9K_SHORTEN_STRATEGY
. Default behavior is unchanged (truncate whole
directories). POWERLEVEL9K_SHORTEN_DIR_LENGTH
can be used to influence how
much will be truncated (either direcories or chars).
ip
addedThis segment shows your internal IP address. You can define which interfaces IP
will be shown by specifying it via POWERLEVEL9K_IP_INTERFACE
.
load
addedThis segment shows your computers 5min load average.
os_icon
addedThis segment shows a little indicator which OS you are running.
php_version
addedThis segment shows your PHP version.
vi_mode
addedThis segment gives you a hint in which VI-mode you currently are. This segment requires a proper configured VI-mode.
By setting the according variable to an empty array, the left or right prompt will be empty.
This is the first release
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。