All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
4.7.0 - 2021-06-06
- Drop hack solution for line-init, line-finish conflict in vi mode. No point to use these zle hook widgets together. Just disable one of them.
- Section:
- Docker, fix context
- Gradle, new added
- Maven, new added
- Rust, change symbol to crab emoji
- Script:
- follow
ZDOTDIR
in install, uninstall script
- follow
- Docs:
- explain custom sections
4.6.0 - 2021-02-01
- Integrate
conda
,venv
,pyenv
into new sectionpython
docker
section: suppress warning in stdout when docker daemon is not available- Fix stderr being mapped to
/dev/null
by upgradezsh-async
to 1.8.5 - Fix vi status conflict with plugin zsh-vim-mode in pipenv shell or poetry shell
- Drop submodule
gitstatus
, whose installation is left user themselves
- Use
SPACESHIP_XCODE_SHOW_*
forxcode
section, which formerly share settingsSPACESHIP_SWIFT_SHOW_*
withswift
- New section
gcloud
- Update instructions to do shallow clone on installation
- Force
command grep
in case it's shadowed by aliases
4.5.0 - 2020-03-01
- Merge with upstream to 6319158
- Remove useless subshell in
utils.zsh
- Use a temp file to pass var back from the worker pseudo shell, which fixes #1, #2
- iTerm2 integration: avoid duplicate markers
- Shallow clone
gitstatus
4.4.0 - 2019-09-12
- Rename project as "Spacezsh".
CHANGELOG.md
- Fix
README.md
and other documentations.
- Reduce number of sections enable in the default conf. Give the option back to users.
- Redraw prompt on working directory changes with hook
chpwd
, where hookprecmd
is not triggered. - Fix battery status query from @Runrioter.
- Replace
${=}
with(s)
for word splitting to avoidIFS
overridden in the outer scope.
- Remove
sz::func_defined
.(( $functions[foo] ))
is faster thantypeset -f + "foo"
. Do things in the ZSH way.
4.3.0 - 2019-08-28
- New section
ssh
to add an SSH connection indicator. - Cursor style support for section
vi_char
. - New section
vcs
replaces sectiongit
andhg
.
- Optimization: remove unnecessary sub-shells in section
git
,hg
. - Optimization: skip redundant color escape code concatenation in
ss::section
.
- Typo fix in section renderer
ss::section
.
4.2.0 - 2019-07-14
autoload
function: setup functions, library functions, sections, borrowed from robobenklein/zinc.- Hook support for sections, borrowed from robobenklein/zinc
and
add-zsh-hook
. - New utility functions:
ss::set_default
,ss::var_defined
.
- Enable async for sections in the "default" conf.
- Improve prompt cleanup function.
- Rename
vi_char
aschar
, as the character symbol section. - Deprecate
git
,git_status
,git_branch
,hg
,hg_status
,hg_branch
. - Deprecate
vi_mode
. Vi mode indicator is integrated into sectionchar
.
4.1.0 - 2019-07-11
- Fully compliant with the
promptinit
standard borrowed from robobenklein/zinc.
- Replace
spaceship::section <color> [prefix] <content> [suffix]
withspaceship::section <color> <content> [prefix] [suffix]
. Move optional arguments to the end for optimization. - Optimization: pass output with global variable in section renderer to remove sub-shells.
- Optimization: cache async states of sections.
4.0.0 - 2019-07-06
- Conditional async generator, enable async for section with
section::async
. - Placeholder support for unrendered async section.
- Right prompt begins at the same line with the left one.
- Same name custom sections override built-in sections.
- New section
gitstatus
. - New section
vagrant
from @guilhermeleobas. - New utility function
spaceship::upsearch
. - Add
.ruby-version
file check forrbenv
in sectionruby
. Similar checks are added fornodenv
,pyenv
. - New section
vi_char
with integration of prompt character and vi_mode indicator. - Add mercurial repo detection in section
dir
. autoload
rarely used functions, like environment detection for bug report.
exec_time
section: Duration calc with variableEPOCHREALTIME
but not external commanddate
.- Optimization: remove unnecessary pipes to reduce cost on spawning processes.
- Optimization: replace
command -v
with faster(( $+commands[aws] ))
. Do things in the ZSH way. - Recursive search for file existence in sections like
docker
,dotnet
,exlir
, etc, in commit f63fb84. - Optimization: priority adjustment for file existence check in
docker
. - Optimization: trigger
vcs_info
on demand, whenever in agit
repo. - Optimization: faster repo detection in section
dir
. - Optimization: query background jobs with
jobstates
but not external commandjobs
. Do things in the ZSH way.
- Prompt refresh in
vi_mode
in the new async mode. - Reset and redisplay prompt to avoid previous prompt being eaten up in async mode.
- Remove utility
spaceship::exists
.(( $+commands[foo] ))
is faster thancommand -v foo
in ZSH. Do things in the ZSH way.
- Improve repo detection support in section
dir
- Rewrite
sz::section
to avoid pass variable from the worker back to the main shell - Project files cleanup
- Remove the totally useless prepositions