Marc Cornellà
65a1e4edbe
fix(installer): detect newer Git for Windows version errors ( #11157 )
...
Fixes #11157
4 years ago
Marc Cornellà
ee4910e3b3
fix: show full hyperlinks in Konsole ( #10964 )
...
Fixes #10964
4 years ago
Marc Cornellà
f80cf12092
fix: fix OSC 8 hyperlink escape sequences
4 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
Marc Cornellà
9c84c344d7
fix: disable `log.showSignature` in `git log` calls
4 years ago
Marc Cornellà
fbdc078fa6
style: use 24bit colors in Oh My Zsh logo if supported
4 years ago
Marc Cornellà
f85087005a
fix(installer): fix POSIX shell syntax of previous commit
5 years ago
Marc Cornellà
ba069e7731
fix(installer): don't hard-code user `$HOME` directory on install
5 years ago
Nick Aldwin
c66fc00401
feat(updater): show command to update when update skipped ( #10465 )
5 years ago
Marc Cornellà
2b96b7c54b
fix(updater): stop update if `$ZSH` is not a git repository ( #10448 )
...
Fixes #10448
5 years ago
Marc Cornellà
fb12e41353
fix(install): fix backslash in `printf` when showing logo ( #10422 )
...
Fixes #10422
5 years ago
Marc Cornellà
e3f7b8aa57
fix(updater): avoid `git -C` for compatibility with git < v1.8.5 ( #10404 )
...
Fixes #10404
5 years ago
Marc Cornellà
db19589fcf
refactor(updater): simplify check for available updates
5 years ago
Kevin Burke
e86c6f5e7f
style: use `-n` flag in `head` and `tail` commands ( #10391 )
...
Co-authored-by: Marc Cornellà <hello@mcornella.com>
5 years ago
Marc Cornellà
7a2cb10625
fix(updater): stop update if connection unavailable
5 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.
5 years ago
Marc Cornellà
4b3a5c5411
fix(changelog): fix percent escapes in `printf` calls
5 years ago
Marc Cornellà
0267cb89eb
perf(changelog): use regex-match instead of `sed` to parse commit subjects
5 years ago
Marc Cornellà
140bfa8432
fix(changelog): go back to ignoring commits from merged branches
5 years ago
Marc Cornellà
9c8131e417
perf(changelog): use a single `git log` command to get all commit messages
5 years ago
Marc Cornellà
c2b9ae2937
fix(changelog): don't show more than 40 commits ( #10345 )
...
Fixes #10345
5 years ago