Add build date in info

Fixes #421
This commit is contained in:
Eric Nielsen 2021-01-02 18:40:58 -05:00
parent dfbe535430
commit 153c547466
No known key found for this signature in database
GPG Key ID: 47D1DBFA0765A1FB
3 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Prompt before uninstalling modules, unless `-q` is set.
- Show build date in info.
### Fixed
- Show error when no parameter is provided to `-c|--cmd`.

View File

@ -1,5 +1,5 @@
_zimfw_info() {
print -R 'zimfw version: '${_zversion}' (previous commit is <%= `git rev-parse --short HEAD | tr -d '\r\n'` %>)'
print -R 'zimfw version: '${_zversion}' (built at <%= Time.now.utc %>, previous commit is <%= `git rev-parse --short HEAD | tr -d '\r\n'` %>)'
print -R 'ZIM_HOME: '${ZIM_HOME}
print -R 'Zsh version: '${ZSH_VERSION}
print -R 'System info: '$(command uname -a)

View File

@ -319,7 +319,7 @@ _zimfw_compile() {
}
_zimfw_info() {
print -R 'zimfw version: '${_zversion}' (previous commit is c6f0720)'
print -R 'zimfw version: '${_zversion}' (built at 2021-01-02 23:37:59 UTC, previous commit is dfbe535)'
print -R 'ZIM_HOME: '${ZIM_HOME}
print -R 'Zsh version: '${ZSH_VERSION}
print -R 'System info: '$(command uname -a)