summaryrefslogtreecommitdiff
path: root/tools/install.sh
AgeCommit message (Collapse)Author
2025-11-19feat: Update OpenSwag domain references to CommitGoods (#13434)Copilot
* 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-15feat: announce OpenSwag and `omz shop` command (#13428)Copilot
* 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-08-19fix(install): ensure `--unattended` is respected (#13275)Carlo Sala
Closes #13274
2025-08-16feat(installer): add confirmation before overwriting existing .zshrc (#13086)olwooz
2025-03-20chore(install): option case matching (#12881)Gurram Siddarth Reddy
2024-07-03chore: replace all instances of twitter with XCarlo Sala
Closes #12536
2024-03-07feat(tools): update `supports_hyperlinks` (#12258)Ross Williams
Update to https://github.com/zkat/supports-hyperlinks/releases/tag/v3.0.0
2023-12-01fix(installer): fix path logic and improve clarity on ZDOTDIR useMarc Cornellà
2023-04-03chore(installer): remove words triggering false positives in antivirusesMarc Cornellà
2023-03-31fix(installer): don't use `sudo` when user is in Termux (#11591)Webpage-gh
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2023-02-02fix(installer): automatically create ZDOTDIR path if it doesn't existMarc Cornellà
2023-02-02fix(installer): don't use `$ZDOTDIR` in zshrc file if same as `$HOME`Marc Cornellà
Fixes #11471
2023-01-29feat(installer): respect and install in `$ZDOTDIR` if set (#9376)Alex
Fixes #9001 Fixes #10479 Closes #9376 Co-authored-by: Marc Cornellà <hello@mcornella.com>
2022-10-14fix(installer): detect newer Git for Windows version errors (#11157)Marc Cornellà
Fixes #11157
2022-10-12fix: show full hyperlinks in Konsole (#10964)Marc Cornellà
Fixes #10964
2022-10-12fix: fix OSC 8 hyperlink escape sequencesMarc Cornellà
2022-03-28fix(installer): exit install directory on setup (#10804)Marc Cornellà
2022-03-07fix(installer): fix `$HOME` setting if `getent` is not found (macOS)Marc Cornellà
Related: https://github.com/ohmyzsh/ohmyzsh/pull/10713/files#r820219899
2022-02-25fix(installer): fix removal of OMZ directory on failureMarc Cornellà
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.
2022-02-22fix(installer): silence `git init`Marc Cornellà
2022-02-22fix(installer): set `$HOME` if not defined (#10680)Marc Cornellà
Fixes #10680
2022-01-28refactor(installer): use POSIX-standard's `id -u -n` to define `$USER`Marc Cornellà
2022-01-27fix(installer): avoid `git clone -c` to support git v1.7.1 (#10621)Marc Cornellà
2022-01-24fix(installer): correct check for `sudo` in shell change logicMarc Cornellà
2022-01-24fix(installer): define `$USER` if not definedMarc Cornellà
Fixes missing $USER value in ArchLinux sh (bash)
2022-01-24style(installer): prefix formatting variables with `FMT_`Marc Cornellà
2022-01-11refactor(installer): simplify `user_can_sudo` checkMarc Cornellà
2022-01-11fix(installer): fix `sudo` check for users with password or without privilegesMarc Cornellà
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.
2022-01-11fix(installer): run `chsh` with sudo if user has privilegesMarc Cornellà
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.
2022-01-09style: use 24bit colors in Oh My Zsh logo if supportedMarc Cornellà
2021-12-26fix(installer): fix POSIX shell syntax of previous commitMarc Cornellà
2021-12-26fix(installer): don't hard-code user `$HOME` directory on installMarc Cornellà
2021-11-16fix(install): fix backslash in `printf` when showing logo (#10422)Marc Cornellà
Fixes #10422
2021-11-09style: use `-n` flag in `head` and `tail` commands (#10391)Kevin Burke
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2021-09-23style(installer): use rainbow logo and polish success message (#10211)Marc Cornellà
2021-09-22feat(update): allow updating from branch set up on installMarc Cornellà
Closes #8788 Co-authored-by: Nikolas Garofil <nikolas@garofil.be>
2021-03-25fix: use `$USERNAME` guaranteed to always be defined in zshMarc Cornellà
Fixes #9701
2021-03-16refactor(installer): fix static analysis warnings (#9529)Léa Gris
* 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`
2020-11-09fix(installer): fix error message if $ZSH exists when installingMarc Cornellà
Also prefix all formatting functions with fmt_ Related: #9427
2020-08-20docs: document oneline argument passing to install scriptMarc Cornellà
2020-08-20docs: add fetch install command for FreeBSD (#9172)Adam G. Emerson
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-08-17Underline links in install and update scriptMarc Cornellà
2020-07-01install: fix typo (#9069)Alex Zdanowicz
Changing 'your' to 'you'
2020-06-28Modernize install and update banners (#9045)Larson Carter
2020-02-25installer: add option to install without replacing .zshrc (#8209)Michael Dorst
* Add option to install OMZ without replacing .zshrc tools/install.sh respects REPLACE_RC environment variable --noreplace-rc flag sets REPLACE_RC='no' * Change REPLACE_RC=no to KEEP_ZSHRC=yes Change --noreplace-rc to --keep-zshrc
2020-02-24installer: remove redundant cp command (#8668)Jonathan Chang
2019-11-20Actions to take after repository migration is complete (#8394)Marc Cornellà
* Change project URL from robbyrussell to ohmyzsh org * Update git remote to use ohmyzsh org repository
2019-10-21Set default git-config values known to fix repository issuesMarc Cornellà
- core.autocrlf=false -> #4069 - fsck.zeroPaddedFilemode -> #4963 Fixes #4069 Fixes #4963
2019-09-08installer: allow chsh to work in termuxMarc Cornellà
2019-06-09installer: don't rely on tput for coloringMarc Cornellà
tput is error-prone and may not be needed, since all the formatting codes used are standard across all types of terminals.