Nick Aldwin
c66fc00401
feat(updater): show command to update when update skipped ( #10465 )
4 years ago
Marc Cornellà
2b96b7c54b
fix(updater): stop update if `$ZSH` is not a git repository ( #10448 )
...
Fixes #10448
4 years ago
Marc Cornellà
fb12e41353
fix(install): fix backslash in `printf` when showing logo ( #10422 )
...
Fixes #10422
4 years ago
Marc Cornellà
e3f7b8aa57
fix(updater): avoid `git -C` for compatibility with git < v1.8.5 ( #10404 )
...
Fixes #10404
4 years ago
Marc Cornellà
db19589fcf
refactor(updater): simplify check for available updates
4 years ago
Kevin Burke
e86c6f5e7f
style: use `-n` flag in `head` and `tail` commands ( #10391 )
...
Co-authored-by: Marc Cornellà <hello@mcornella.com>
4 years ago
Marc Cornellà
7a2cb10625
fix(updater): stop update if connection unavailable
4 years ago
Marc Cornellà
1dba112041
fix(changelog): fix for `${(@ps:$sep:)var}` construct in zsh < 5.0.8
...
In recent zsh versions, `${(@ps:$sep:)var}` where $sep is a variable containing
a separator string and $var is a string with multiple values separated by $sep,
the `p` flag makes zsh correctly expand $sep before splitting $var. In versions
older than 5.0.8, this doesn't happen, so we use `eval` to get the same effect.
4 years ago
Marc Cornellà
4b3a5c5411
fix(changelog): fix percent escapes in `printf` calls
4 years ago
Marc Cornellà
0267cb89eb
perf(changelog): use regex-match instead of `sed` to parse commit subjects
4 years ago
Marc Cornellà
140bfa8432
fix(changelog): go back to ignoring commits from merged branches
4 years ago
Marc Cornellà
9c8131e417
perf(changelog): use a single `git log` command to get all commit messages
4 years ago
Marc Cornellà
c2b9ae2937
fix(changelog): don't show more than 40 commits ( #10345 )
...
Fixes #10345
4 years ago
Marc Cornellà
19f9b6f1ad
feat(updater): add support for terminal hyperlinks
4 years ago
Marc Cornellà
607d2f1eda
Revert "fix(changelog): don't parse commits of ignored types"
...
This reverts commit 63b7e5767d .
5 years ago
Marc Cornellà
63b7e5767d
fix(changelog): don't parse commits of ignored types
5 years ago
Marc Cornellà
30d441713c
feat(updater): check if there are updates before prompting ( #8387 )
...
Fixes #8387
5 years ago
Marc Cornellà
0120749a54
feat(updater): add mode to only remind you to update when it's time ( #10187 )
...
Fixes #10187
Co-authored-by: NoPreserveRoot <NoPreserveRoot@pm.me>
5 years ago
Marc Cornellà
3c9743313c
refactor(updater): change auto-update settings to use `zstyle`
5 years ago
Marc Cornellà
57e8c959a0
style(installer): use rainbow logo and polish success message ( #10211 )
5 years ago
Marc Cornellà
098bcda691
feat(update): allow updating from branch set up on install
...
Closes #8788
Co-authored-by: Nikolas Garofil <nikolas@garofil.be>
5 years ago
Marc Cornellà
b79726b1c3
fix(update): silence `typeset` calls in `upgrade.sh` script ( #10048 )
...
Co-authored-by: yyny <6576327+yyny@users.noreply.github.com>
5 years ago
Marc Cornellà
37a60eebc1
chore(changelog): fix first-letter uppercase in breaking change messages
5 years ago
Marc Cornellà
f341c8c206
feat(changelog): print BREAKING CHANGE messages in a prettier way
5 years ago
Marc Cornellà
7336ebcd8f
feat(changelog): change style of `BREAKING CHANGES` header
5 years ago
Marc Cornellà
ad1837859b
fix(updater): fix reset ANSI escape code for resetting underline format
5 years ago
Marc Cornellà
7c5ab01a5f
fix(changelog): also display commits from merged branches
5 years ago
Marc Cornellà
36f444ed73
fix(update): fix error exit code on update check ( #10033 )
...
This patch removes the 'exit 1' status code when the update check
finishes or is ended with CTRL+C.
Fixes #10033
5 years ago
Marc Cornellà
0e7d7b87f3
feat(changelog): ignore merge commits
5 years ago
Logicer
270db70805
fix(update): correct description of how changelog is displayed ( #9943 )
5 years ago
Max Staff
279212f2cc
feat(theme_chooser): display non-zero exit code ( #8428 )
...
Fixes #8427
5 years ago
Marc Cornellà
02d07f3e3d
fix: use `$USERNAME` guaranteed to always be defined in zsh
...
Fixes #9701
5 years ago
Léa Gris
95a06f3927
refactor(installer): fix static analysis warnings ( #9529 )
...
* refactor(install.sh): fix static analysis warnings
Clear all warnings and errors raised by shellcheck.net static analysis.
- Replace non-POSIX shell use of `$OSTYPE` by POSIX compliant check on `uname -o`.
- Move variables out of`printf` format string.
- Refactor/simplify string formatters for error and underline.
- Fix expansion of arguments to a single string `$*` rather than individual elements `$@` within the error and underline formatters.
* fix(uname): non-posix -o option
* fix(install.sh): non portable which
Replaced non-portable `which zsh` by portable `command -v zsh`
5 years ago
Marc Cornellà
e8716cb570
fix(uninstall): fix renaming .zshrc when no original rc file found
...
Fixes #9629
Fixes #9700
5 years ago
Cai Cooper
6fbad5bf72
fix(update): don't error on upgrade no-op ( #9685 )
...
* Don't error on upgrade no-op
No error code is required for a non failure scenario.
* Manually check whether changes were pulled in `omz update`
Co-authored-by: Marc Cornellà <hello@mcornella.com>
5 years ago
Marc Cornellà
d978f385e5
fix(updater): refresh date of last update only on successful update
5 years ago
Marc Cornellà
3d51d63077
fix(changelog): fix spacing in breaking changes message
5 years ago
Marc Cornellà
86f805280f
fix(changelog): display scope in breaking change messages
5 years ago
Marc Cornellà
a4a79eaa8c
fix(changelog): remove CR characters in breaking change messages
...
The GitHub UI might not remove CR characters from commit description forms
filled from a Windows browser.
5 years ago
Marc Cornellà
4b2431e8b1
fix(updater): don't pipe changelog to less when updating
...
Fixes #9509
5 years ago
Marc Cornellà
e2c73cf59a
fix(changelog): allow breaking change message to span multiple lines
...
This also allows the option to put extra paragraphs after the BREAKING CHANGE
message while properly displaying the breaking change message. Useful, for
example, to add signed-off or co-authored lines.
5 years ago
Marc Cornellà
e8e37eedbc
feat(updater): save version prior to updating so `omz changelog` just works™
...
Fixes #9505
5 years ago
Marc Cornellà
92fa8153d5
fix(changelog): fix assoc array syntax for zsh 5.4.2 and older ( #9495 )
...
Also fixed a call to a defunct display:type-header function in displaying
breaking changes.
5 years ago
Marc Cornellà
5a888ff4ac
fix(updater): don't show changelog when running unattended update ( #9495 )
...
Fixes #9495
5 years ago
Marc Cornellà
4f8964d8ff
fix(changelog): fix highlight of codeblocks in subject
5 years ago
Marc Cornellà
81bbe86db0
fix(updater): properly show changelog via `less`
5 years ago
Marc Cornellà
3f8af040e9
fix(updater): fix ignored variable name in read
...
I used _ which is a convention in other languages, but in shell scripting
$_ is a special variable set by the shell, and in Zsh versions older than
5.0.6 it complains for being a `read-only variable`.
Fixes #9482
5 years ago
Marc Cornellà
021f0251e0
fix(updater): make sure to run it with zsh
5 years ago
Marc Cornellà
eeab4e5186
feat(updater): add changelog display by parsing the commit list
5 years ago
Marc Cornellà
889cd7acf3
refactor(updater): switch to Zsh execution and fix git remote detection logic
5 years ago