ohmyzsh/tools
marcelsafin 01e779a4d3 fix(uninstaller): respect $ZDOTDIR and $ZSH variables
The uninstaller hardcodes ~/.oh-my-zsh and ~/.zshrc, which fails for
users who set $ZDOTDIR or installed to a custom $ZSH path. The
installer already handles these variables (tools/install.sh line 62),
but the uninstaller does not, leaving files behind or removing the
wrong directory.

Use ${ZDOTDIR:-$HOME} and ${ZSH:-$HOME/.oh-my-zsh} to match the
installer's conventions. Also pass ZDOTDIR through the env wrapper
in uninstall_oh_my_zsh() so it is available to the sh subprocess.

Closes #11466
Closes #10537

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-08 15:22:11 +02:00
..
changelog.sh fix(changelog): show if there are no changes (#12934) 2025-01-23 20:38:12 +01:00
check_for_upgrade.sh fix(check_for_upgrade): ensure compatibility with screen (#13302) 2025-09-19 15:47:45 +02:00
install.sh fix(installer): handle sudo shims that don't support -k flag (#13651) 2026-03-26 20:09:56 +01:00
require_tool.sh chore(docs): fix some typos (#11211) 2022-10-03 17:03:53 +02:00
theme_chooser.sh fix(theme-chooser): use env in shebang (#12720) 2024-10-03 10:47:33 +02:00
uninstall.sh fix(uninstaller): respect $ZDOTDIR and $ZSH variables 2026-04-08 15:22:11 +02:00
upgrade.sh feat: Update OpenSwag domain references to CommitGoods (#13434) 2025-11-19 17:44:11 -08:00