1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-10-23 04:53:45 +08:00

335 Commits

Author SHA1 Message Date
Robby Russell
964ddf789b feat(cli): add Shellsavers terminal animations (#14167)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2026-10-13 11:22:24 +02:00
Inkyu Oh
106f9874a2 fix(updater): accept Korean IME 'ㅛ' as yes in update prompt (#13791)
On the Korean Dubeolsik keyboard layout, the Y key position produces ㅛ
(U+315B) when a Korean IME is active. Since the update confirmation prompt
only matched [yY$'\n'], Korean users who pressed the Y key with the IME on
had their update silently cancelled. Accept ㅛ as an affirmative answer.
2026-10-11 16:39:36 -07:00
Kunpeng Xie
6553f90c45 fix(updater): detect pending terminal input on macOS (#14093) 2026-09-14 21:15:14 +02:00
Robby Russell
be8da5c771 feat(updater): add cooldown option to delay applying updates (#13814)
* feat(updater): add cooldown option to delay applying updates (#13813)

Introduces a new `zstyle ':omz:update' cooldown <days>` setting that limits
the updater to only apply commits that are at least N days old. Defaults to 0
(current behavior — always pull latest).

When cooldown is set, the updater fetches the remote branch and finds the most
recent commit whose committer timestamp is at least N days old, then applies it
via `git merge --ff-only`. If the local copy is already at or past the cooldown
ref, nothing changes.

- tools/upgrade.sh: reads cooldown zstyle, replaces git pull with fetch +
  merge --ff-only when cooldown > 0
- README.md: documents the new setting under "Getting Updates"
- templates/zshrc.zsh-template: adds commented-out cooldown example alongside
  frequency, with rephrased comments to clarify how the two work together

* fix(updater): address cooldown review feedback

Pass cooldown into upgrade.sh as -c, extract the update helpers, and only
prompt when a cooldown-eligible commit would actually move HEAD.

* fix(updater): follow first-parent history for cooldown
2026-09-11 09:24:44 -07:00
Robby Russell
cba369e090 perf(update): check the update epoch before forking git (#14062) 2026-09-07 10:17:25 +02:00
Robby Russell
76ac9fcddc chore(core): refresh links in install and upgrade (#14074) 2026-09-07 10:08:43 +02:00
Maksym Tymoshyk
a5ecff7560 fix(updater): silence git version check output (#14029) 2026-08-30 19:16:06 +02:00
P1bub
d42209f2af fix(installer): prevent command injection via $USER in install.sh (#13960)
HOME="${HOME:-$(eval echo ~"$USER")}" expands any shell metacharacters in
$USER when HOME is unset (CWE-78), e.g. USER='x"; <command>; "'. Validate the
username against a safe character set before running the eval and fall back
to $PWD for unsafe values. Also quote $USER in the getent call to avoid word
splitting.

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2026-08-20 10:43:07 +02:00
Josh McKinney
1b2b604c48 fix(core): add Ghostty OSC 8 support (#13961) 2026-08-20 10:18:07 +02:00
Sri Harsha Ponukumati
d2379b2701 chore(install): quote vars and defensive programming (#13840) 2026-06-26 17:07:51 +02:00
Lucas Ma
96ea17080a fix(installer): tolerate sudo shims without -k (#13821)
Co-authored-by: Lucas Ma <7184042+pony-maggie@users.noreply.github.com>
2026-06-15 12:18:28 +02:00
Marc Cornellà
76ffd9e22a fix(installer): handle sudo shims that don't support -k flag (#13651)
Related to #13585

Co-authored-by: Daniel Bates <daniel@batesai.org>
2026-03-26 20:09:56 +01:00
Copilot
b52dd1a425 feat: Update OpenSwag domain references to CommitGoods (#13434)
* Initial plan

* Update all OpenSwag domain references to CommitGoods

Co-authored-by: robbyrussell <257+robbyrussell@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: robbyrussell <257+robbyrussell@users.noreply.github.com>
2025-11-19 17:44:11 -08:00
Copilot
8c5a60644a feat: announce OpenSwag and omz shop command (#13428)
* Update shop URLs from Planet Argon to OpenSwag and add omz shop command

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: robbyrussell <257+robbyrussell@users.noreply.github.com>
Co-authored-by: mcornella <1441704+mcornella@users.noreply.github.com>
2025-11-15 21:00:26 +01:00
Paul Frederiksen
d3888251ac fix(check_for_upgrade): ensure compatibility with screen (#13302)
Co-authored-by: Paul Frederiksen <pfrederiksen@Pauls-Laptop.local>
2025-09-19 15:47:45 +02:00
Carlo Sala
cef64c465a fix(install): ensure --unattended is respected (#13275)
Closes #13274
2025-08-19 12:46:13 +02:00
olwooz
51760e1d4a feat(installer): add confirmation before overwriting existing .zshrc (#13086) 2025-08-16 18:29:43 +02:00
Carlo Sala
f81259fb34 fix(cli): support noexec environments (#13042)
Closes #13032
2025-03-29 12:55:20 +01:00
Gurram Siddarth Reddy
22ec00d1f6 chore(install): option case matching (#12881) 2025-03-20 20:29:33 +01:00
Marc Cornellà
7d32e7fc3f fix(updater): detect p10k instant prompt (#12971)
Fixes #12781
2025-02-13 12:22:23 +01:00
Marc Cornellà
4e29c670a4 fix(changelog): show if there are no changes (#12934) 2025-01-23 20:38:12 +01:00
Muhammad Atif Ali
0c8ce9d6ad fix(theme-chooser): use env in shebang (#12720) 2024-10-03 10:47:33 +02:00
Carlo Sala
057f3ec67e chore: replace all instances of twitter with X
Closes #12536
2024-07-03 08:51:20 +02:00
Ihor
35f1d362c1 docs: rename twitter to X, fix link (#12532) 2024-07-02 17:15:22 +02:00
Marc Cornellà
80a651a6df chore(updater): small typo 2024-04-18 07:48:33 +02:00
Marc Cornellà
56cfcb44e7 fix(updater): abort update if $ZSH is not a git repository
Fixes #12298
2024-04-18 07:33:13 +02:00
Marc Cornellà
c262ffbb68 fix(update): define $ZSH if undefined (#12273)
Fixes #12273
Fixes https://github.com/topgrade-rs/topgrade/issues/519
2024-04-18 07:16:42 +02:00
Ross Williams
4fca7ccb55 feat(tools): update supports_hyperlinks (#12258)
Update to https://github.com/zkat/supports-hyperlinks/releases/tag/v3.0.0
2024-03-07 09:54:43 +01:00
Gautam krishna R
17e96bf91e fix(changelog): use longer hashes for commits (#12096) 2023-12-20 21:10:32 +01:00
Marc Cornellà
b6afbbea3a fix(installer): fix path logic and improve clarity on ZDOTDIR use 2023-12-01 17:03:15 +01:00
Marc Cornellà
29b99c2c7b feat(updater): add background-alpha update mode (preview) (#11928)
NOTE: this feature is in alpha / preview mode, it is not guaranteed to work 100% of the
time in all cases. If you experience any issues, open an issue or search for an open
one describing your same situation.

To use this, use the zstyle update mode settings [1] with the value `background-alpha`:

  zstyle ':omz:update' mode background-alpha

[1] https://github.com/ohmyzsh/ohmyzsh#getting-updates
2023-10-09 18:00:17 +02:00
Marc Cornellà
bbda81fe4b fix(changelog): fix regression for unstyled code in commit subjects 2023-09-13 19:23:41 +02:00
Marc Cornellà
000be72dd0 fix(updater): disable nounset to avoid warnings (#11856) 2023-08-29 10:27:36 +02:00
Carlo Sala
d889eca726 fix(check_for_upgrade): update properly LAST_EPOCH
Fixes #11617
2023-04-17 20:09:30 +02:00
Marc Cornellà
c7bb88f9ad fix(changelog): ignore lines containing whitespace in breaking change commits 2023-04-03 23:27:14 +02:00
Marc Cornellà
f8bf88edca chore(installer): remove words triggering false positives in antiviruses 2023-04-03 22:21:49 +02:00
Marc Cornellà
6ef236dd99 fix(updater): search for upstream remote if using non-conventional name (#11135)
Fixes #11135
2023-04-01 10:15:59 +02:00
Carlo Sala
029a6d2de8 fix(upgrade): typo in variable check 2023-03-31 15:30:19 +02:00
Guy Sartorelli
b9c4e2e823 feat(changelog): provide links in changelog (#11578) 2023-03-31 07:49:59 +02:00
Webpage-gh
7837ba6a99 fix(installer): don't use sudo when user is in Termux (#11591)
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2023-03-31 07:37:01 +02:00
Håvard Bartnes
8f6fbe2389 feat(upgrade): add verbosity settings
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>

Closes #11574
Closes #11579
2023-03-28 12:58:33 +02:00
Michele Bologna
c08b925d28 fix(uninstall): abort uninstall if unable to change shell (#10357) 2023-03-23 14:34:43 +01:00
Marc Cornellà
6c3cf658f6 fix(installer): automatically create ZDOTDIR path if it doesn't exist 2023-02-02 08:53:44 +01:00
Marc Cornellà
5c9a3d2f4f fix(installer): don't use $ZDOTDIR in zshrc file if same as $HOME
Fixes #11471
2023-02-02 08:53:44 +01:00
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>
2023-01-29 12:39:22 +01:00
Carlo Sala
fe0dd8226d fix(upgrade): do not upgrade if not called from tty
Fixes #11390
2023-01-17 12:48:05 +01:00
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
2023-01-03 10:02:05 +01:00
jzhang046
1aa58d42a5 fix(changelog): generate correct commit link in markdown (#11356) 2022-11-27 10:54:24 +01:00
Marc Cornellà
65a1e4edbe fix(installer): detect newer Git for Windows version errors (#11157)
Fixes #11157
2022-10-14 20:31:33 +02:00
Marc Cornellà
ee4910e3b3 fix: show full hyperlinks in Konsole (#10964)
Fixes #10964
2022-10-12 10:55:02 +02:00