summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2020-12-12fix(changelog): allow breaking change message to span multiple linesMarc Cornellà
This also allows the option to put extra paragraphs after the BREAKING CHANGE message while properly displaying the breaking change message. Useful, for example, to add signed-off or co-authored lines.
2020-12-12feat(updater): save version prior to updating so `omz changelog` just works™Marc Cornellà
Fixes #9505
2020-12-07fix(changelog): fix assoc array syntax for zsh 5.4.2 and older (#9495)Marc Cornellà
Also fixed a call to a defunct display:type-header function in displaying breaking changes.
2020-12-07fix(updater): don't show changelog when running unattended update (#9495)Marc Cornellà
Fixes #9495
2020-12-04fix(changelog): fix highlight of codeblocks in subjectMarc Cornellà
2020-12-04fix(updater): properly show changelog via `less`Marc Cornellà
2020-12-02fix(updater): fix ignored variable name in readMarc Cornellà
I used _ which is a convention in other languages, but in shell scripting $_ is a special variable set by the shell, and in Zsh versions older than 5.0.6 it complains for being a `read-only variable`. Fixes #9482
2020-12-01fix(updater): make sure to run it with zshMarc Cornellà
2020-11-30feat(updater): add changelog display by parsing the commit listMarc Cornellà
2020-11-30refactor(updater): switch to Zsh execution and fix git remote detection logicMarc Cornellà
2020-11-09fix(installer): fix error message if $ZSH exists when installingMarc Cornellà
Also prefix all formatting functions with fmt_ Related: #9427
2020-09-09update: return git error code on failure (#9238)Lucas Larson
Fixes #9237
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-13update: prefix rm call with command in trap (#9107)M. Yas. Davoodeh
* Suppress the problematic trap output in check_upg The newly added trap, in systems where `rm` is aliased to `rm="rm -v"`, shows a message stating that "update.lock" has been removed each time `zsh` is called. I simply suppressed it with directing the output to `/dev/null`. * Use `command` instead of >/dev/null to suppress
2020-07-01install: fix typo (#9069)Alex Zdanowicz
Changing 'your' to 'you'
2020-06-28Modernize install and update banners (#9045)Larson Carter
2020-06-28update: change dash in function name for sh compat (fixes #9064)Marc Cornellà
2020-06-28update: only update on a valid affirmative input (#9062)alexagnelli
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-06-09update: refactor and fix logic in check_for_upgrade.sh (#8939)Marc Cornellà
2020-05-19update: fix bug in upgrade.sh: s/NORMAL/RESET/ (#8947)Roman Perepelitsa
2020-05-18update: display logo in rainbow colors (#8941)Marc Cornellà
2020-03-11updater: use hardcoded color sequences instead of tputMarc Cornellà
2020-03-11updater: use `git config` instead of `git -c` for git < v1.7.2Marc Cornellà
Fixes #8732
2020-02-29updater: fix --autostash argument. Works for git > 1.7.1Marc Cornellà
See https://github.com/ohmyzsh/ohmyzsh/pull/7172#issuecomment-592875226
2020-02-27updater: add --autostash to git pull (#7172)Mauricio Wolff
If I have custom configs (like theme customizations) I have to stash my changes and get them back after the update. By adding the --autostash on upgrade.sh, if I have any changes not commited they'll be reapplied after the upgrade, allowing me to have temporary customizations without any harm to the upgrade process.
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-25Fix change to old shell on uninstall (#8430)Giuseppe
If there's no `~/.shell.pre-oh-my-zsh`, don't assume the default choice is Bash. In fact Zsh is the default shell for macOS since Catalina (10.15) [1], yet users of other OSes have likely to have Bash as their default. This commit fix issue #8252 [1] https://support.apple.com/en-us/HT208050
2019-11-21Fix non-POSIX conditional syntaxMarc Cornellà
Fixes #8416
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-11-09upgrade: remove double whitespace in message (#7517)Quentin Dreyer
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.
2019-06-03installer: ask user about changing the shell to zshMarc Cornellà
2019-06-03installer: allow for tput errorsMarc Cornellà
tput may throw errors on invalid $TERM values, for example. This shorthand syntax allows for that as well as for if tput doesn't exist.
2019-06-03installer: restore previous default shell with uninstallZach Whitten
Co-authored-by: Antonio QUINTAVALLE <antonio.quintavalle@amadeus.com> Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2019-06-03installer: improve message formatting and colorMarc Cornellà
2019-06-03installer: change to --unattended argument and add docsMarc Cornellà
2019-06-03installer: comment changesMarc Cornellà
2019-06-03installer: add option to not run zsh at the endMarc Cornellà
Co-authored-by: Liquidsoul <liquidsoul@liquidsoul.fr> Co-authored-by: Alexander Polynomdivision <digitalmail555@googlemail.com> Co-authored-by: loket <loket@cruftlab.io> Co-authored-by: Connor Demille <subtlepseudonym@gmail.com>
2019-06-03installer: don't run zsh at the endMarc Cornellà
Co-authored-by: Joel Kuzmarski <leoj3n@gmail.com>
2019-06-03installer: add ability to skip the default shell changeMarc Cornellà
Co-authored-by: Marshall Ford <inbox@marshallford.me> Co-authored-by: Joel Kuzmarski <leoj3n@gmail.com>
2019-06-03installer: use timestamped backups to preserve all old zshrcsAndrew Janke
2019-06-03installer: use default color sequences on missing tputMarc Cornellà
Supposed to be POSIX-compatible. Proved to work in dash, yash and whatever alpine uses. See https://unix.stackexchange.com/a/371873
2019-06-03installer: allow configuration of remote URL to clone fromMarc Cornellà
2019-06-03installer: add ability to install from forked & branched reposAndrew Janke
This facilitates testing of changes to the core installation code: you'll be able to do a roundtrip test of install and uninstall using the working code on your branch. Controlled by passing $REPO and $BRANCH environment variables to install.sh.
2019-06-03installer: improve zsh binary path search in setup_shellMarc Cornellà
This changes the behavior to default to the binary found first in $PATH, then checking it's actually in the shells file (/etc/shells). If that fails go back to the previous behavior, but actually check that the path obtained exists in the filesystem. Co-authored-by: Joel Kuzmarski <leoj3n@gmail.com>