diff --git a/CHANGELOG.md b/CHANGELOG.md
index af2427c..08fa8f2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,12 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+_No unreleased changes._
+
+## [1.15.0] - 2024-10-08
+
### Added
- `reinstall` action, that removes and then installs again the modules that
failed any of the checks:
- module was installed with the defined tool,
- module URL matches the defined one.
+- `--if-ostype` option to `zmodule`. This option is equivalent to
+ `--if "[[ \${OSTYPE} == ${1} ]]"`.
### Changed
@@ -410,7 +416,8 @@ Take your time to review the updated [README.md] and the changes listed below.
[termtitle]: https://github.com/zimfw/termtitle
[s1ck94]: https://github.com/zimfw/s1ck94
-[Unreleased]: https://github.com/zimfw/zimfw/compare/v1.14.0...HEAD
+[Unreleased]: https://github.com/zimfw/zimfw/compare/v1.15.0...HEAD
+[1.15.0]: https://github.com/zimfw/zimfw/compare/v1.14.0...v1.15.0
[1.14.0]: https://github.com/zimfw/zimfw/compare/v1.13.1...v1.14.0
[1.13.1]: https://github.com/zimfw/zimfw/compare/v1.13.0...v1.13.1
[1.13.0]: https://github.com/zimfw/zimfw/compare/v1.12.1...v1.13.0
diff --git a/README.md b/README.md
index 0f62a49..d809e09 100644
--- a/README.md
+++ b/README.md
@@ -291,6 +291,9 @@ Per-module-root options:
--if-command <cmd_name> Will only initialize module root if specified external command is
available. This is evaluated at every new terminal startup.
Equivalent to --if '(( ${+commands[<cmd_name>]} ))'.
+ --if-ostype <ostype> Will only initialize module root if OSTYPE is equal to the given
+ expression. This is evaluated at every new terminal startup.
+ Equivalent to --if '[[ ${OSTYPE} == <ostype> ]]'.
--on-pull <command> Execute command after installing or updating the module. The com-
mand is executed in the module root directory.
-d|--disabled Don't initialize the module root or uninstall the module.
diff --git a/src/zimfw.zsh.erb b/src/zimfw.zsh.erb
index a83f1b1..1399569 100644
--- a/src/zimfw.zsh.erb
+++ b/src/zimfw.zsh.erb
@@ -4,7 +4,7 @@ class Zim
:bold, :normal, :red, :normalred, :yellow, :normalyellow, :clear_line, :ellipsis, :okay, :warn, :error
def initialize
- @version = "1.15.0-SNAPSHOT"
+ @version = "1.15.0"
@home = "${ZDOTDIR:-${HOME}}"
@min_zsh_version = "5.2"
# Matches {ssh,http,https,git}://{user@,}host/org/repo and {user@,}host:org/repo
diff --git a/zimfw.zsh b/zimfw.zsh
index 3a572ec..f8691d5 100644
--- a/zimfw.zsh
+++ b/zimfw.zsh
@@ -467,7 +467,7 @@ _zimfw_compile() {
}
_zimfw_info() {
- print -R 'zimfw version: '${_zversion}' (built at 2024-10-08 23:24:45 UTC, previous commit is caa0c85)'
+ print -R 'zimfw version: '${_zversion}' (built at 2024-10-08 23:27:26 UTC, previous commit is 4bb6172)'
local zparam
for zparam in LANG ${(Mk)parameters:#LC_*} OSTYPE TERM TERM_PROGRAM TERM_PROGRAM_VERSION ZIM_HOME ZSH_VERSION; do
print -R ${(r.22....:.)zparam}${(P)zparam}
@@ -940,7 +940,7 @@ _zimfw_run_tool_action() {
zimfw() {
builtin emulate -L zsh -o EXTENDED_GLOB
- local -r _zconfig=${ZIM_CONFIG_FILE:-${ZDOTDIR:-${HOME}}/.zimrc} _zversion='1.15.0-SNAPSHOT'
+ local -r _zconfig=${ZIM_CONFIG_FILE:-${ZDOTDIR:-${HOME}}/.zimrc} _zversion='1.15.0'
local -r zusage=$'Usage: \E[1m'${0}$'\E[0m [\E[1m-q\E[0m|\E[1m-v\E[0m]
Actions: