Marc Cornellà
bbda81fe4b
fix(changelog): fix regression for unstyled code in commit subjects
3 years ago
Marc Cornellà
000be72dd0
fix(updater): disable `nounset` to avoid warnings ( #11856 )
3 years ago
Carlo Sala
d889eca726
fix(check_for_upgrade): update properly `LAST_EPOCH`
...
Fixes #11617
3 years ago
Marc Cornellà
c7bb88f9ad
fix(changelog): ignore lines containing whitespace in breaking change commits
3 years ago
Marc Cornellà
f8bf88edca
chore(installer): remove words triggering false positives in antiviruses
3 years ago
Marc Cornellà
6ef236dd99
fix(updater): search for upstream remote if using non-conventional name ( #11135 )
...
Fixes #11135
3 years ago
Carlo Sala
029a6d2de8
fix(upgrade): typo in variable check
3 years ago
Guy Sartorelli
b9c4e2e823
feat(changelog): provide links in changelog ( #11578 )
3 years ago
Webpage-gh
7837ba6a99
fix(installer): don't use `sudo` when user is in Termux ( #11591 )
...
Co-authored-by: Marc Cornellà <hello@mcornella.com>
3 years ago
Håvard Bartnes
8f6fbe2389
feat(upgrade): add verbosity settings
...
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Closes #11574
Closes #11579
3 years ago
Michele Bologna
c08b925d28
fix(uninstall): abort uninstall if unable to change shell ( #10357 )
3 years ago
Marc Cornellà
6c3cf658f6
fix(installer): automatically create ZDOTDIR path if it doesn't exist
3 years ago
Marc Cornellà
5c9a3d2f4f
fix(installer): don't use `$ZDOTDIR` in zshrc file if same as `$HOME`
...
Fixes #11471
3 years ago
Alex
b2313ec749
feat(installer): respect and install in `$ZDOTDIR` if set ( #9376 )
...
Fixes #9001
Fixes #10479
Closes #9376
Co-authored-by: Marc Cornellà <hello@mcornella.com>
3 years ago
Carlo Sala
fe0dd8226d
fix(upgrade): do not upgrade if not called from tty
...
Fixes #11390
3 years ago
Carlo Sala
3fca9c8933
fix(upgrade): check if git is available and working
...
macOS seems to break dev tools when updating the system. This should
prevent the previous issues. See #11309
Closes #11420
3 years ago
jzhang046
1aa58d42a5
fix(changelog): generate correct commit link in markdown ( #11356 )
3 years ago
Marc Cornellà
65a1e4edbe
fix(installer): detect newer Git for Windows version errors ( #11157 )
...
Fixes #11157
3 years ago
Marc Cornellà
ee4910e3b3
fix: show full hyperlinks in Konsole ( #10964 )
...
Fixes #10964
3 years ago
Marc Cornellà
f80cf12092
fix: fix OSC 8 hyperlink escape sequences
3 years ago
George Rodrigues
e0e22d1120
chore(docs): fix some typos ( #11211 )
4 years ago
Brian Wright
bb6c14cdfd
fix(updater): correct spelling of `curl` flag ( #11072 )
4 years ago
Marc Cornellà
18e7e5d033
fix(updater): use `curl --connect-timeout` in new update check
4 years ago
Marc Cornellà
846f417eb8
feat(updater): check for typed input before automatically updating ( #10830 )
4 years ago
Marc Cornellà
9e967b4ecc
fix(installer): exit install directory on setup ( #10804 )
4 years ago
thinszx
4a988c4660
fix(updater): change remote using deprecated `git:` protocol ( #10779 )
4 years ago
Marc Cornellà
4f0b680248
fix(installer): fix `$HOME` setting if `getent` is not found (macOS)
...
Related: https://github.com/ohmyzsh/ohmyzsh/pull/10713/files#r820219899
4 years ago
SBado
af0c3b64b8
fix(updater): prefix `cd` with `builtin` when it is aliased ( #10753 )
4 years ago
Marc Cornellà
c81804825c
fix(installer): fix removal of OMZ directory on failure
...
When the `git init` call fails, the directory is not created,
so the rm command fails with a not found error. This change
checks whether the directory exists before deleting it.
4 years ago
Marc Cornellà
0b0af4df6a
fix(updater): fix check for latest commit in local repository
...
The previous check simply compared whether the last commit of the branch
was the same in the local and the remote repository.
This commit also checks whether the remote commit is an ancestor of the
local commit. This fixes the case where the local repository has new
commits after the last published commit.
4 years ago
Marc Cornellà
ff29836562
fix(updater): timeout after 2s on available update check
4 years ago
Marc Cornellà
914b6399e8
fix(installer): silence `git init`
4 years ago
Marc Cornellà
9b883aa417
fix(installer): set `$HOME` if not defined ( #10680 )
...
Fixes #10680
4 years ago
Marc Cornellà
69e2937891
fix(updater): fix input check on non-interactive runs
...
Reference: https://www.zsh.org/mla/users/2022/msg00067.html
4 years ago
Marc Cornellà
dbd92a62ce
fix(updater): do not swallow 1 character in check for user input
...
Co-authored-by: Philippe Troin <phil@fifi.org>
4 years ago
Marc Cornellà
f0f42828fa
feat(updater): do not update when user already typed some characters ( #9699 )
...
Fixes #9699
4 years ago
Marc Cornellà
46f5d38b1d
refactor(installer): use POSIX-standard's `id -u -n` to define `$USER`
4 years ago
Marc Cornellà
3c5367d272
fix(changelog): don't show changelog with only ignored type commits
4 years ago
Marc Cornellà
59c40eee8e
fix(installer): avoid `git clone -c` to support git v1.7.1 ( #10621 )
4 years ago
Marc Cornellà
fc40b53e64
style(updater): silence `git pull` output and show errors in English
4 years ago
Marc Cornellà
788802af68
fix(installer): correct check for `sudo` in shell change logic
4 years ago
Marc Cornellà
861805b64d
fix(installer): define `$USER` if not defined
...
Fixes missing $USER value in ArchLinux sh (bash)
4 years ago
Marc Cornellà
c7221c5f25
style(installer): prefix formatting variables with `FMT_`
4 years ago
Marc Cornellà
84931adcd4
fix: do not call chpwd hooks in subshells
4 years ago
Marc Cornellà
035c856c2c
fix: get branch name first in `omz version` and changelog
4 years ago
Marc Cornellà
805427e06b
fix(updater): give priority to `zstyle` settings if set ( #10587 )
...
Fixes #10587
4 years ago
Marc Cornellà
bddecfed58
style(updater): remove statl from `git pull`
4 years ago
Marc Cornellà
c63ba17525
refactor(installer): simplify `user_can_sudo` check
4 years ago
Marc Cornellà
a0a949de56
fix(installer): fix `sudo` check for users with password or without privileges
...
The previous check only worked if the user could run `sudo` without typing the
password, which is almost none (I checked in Google Cloud Shell so I failed to
notice this).
This new check works whether the user has no sudo privileges, or if it has,
whether they have to type in the password or not.
It should really be easier to check if the user doesn't have privilege without
having to make them type the password.
4 years ago
Marc Cornellà
b7a59e6d5c
fix(installer): run `chsh` with sudo if user has privileges
...
This fixes the error in Google Cloud Shell, where a password prompt
appears when running `chsh` but the user (hello) does not have a
password.
If ran with `sudo`, the `chsh` command happens without a password
prompt.
4 years ago