summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
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>
2019-06-03installer: fix for Solus OS and systems with no /etc/shellsFran
Co-authored-by: Fredrik Fornwall <fredrik@fornwall.net>
2019-06-03installer: use guard clauses in setup_shell for better readabilityMarc Cornellà
Guard clauses are if constructs that return early if there is an error that prevents continuing. This way there isn't a big nesting of if expressions.
2019-06-03installer: make sure shell in /etc/shells is not commentedRaf Czlonka
Otherwise we risk a situation where a full path to `zsh` is commented, i.e.: #/usr/local/bin/zsh
2019-06-03installer: replace the current shell with the new ZSH instanceLuca S
This replaces the currently running process with the new one using `exec` instead of creating a new process. This way, when the user `exit`s out of the new shell it will not pop them back into the shell from which ohmyzsh was installed from.
2019-06-03installer: abstract error messagesMarc Cornellà
2019-06-03installer: fix for failed chsh quitting the installationMarc Cornellà
2019-06-03installer: extract most code into functionsMarc Cornellà
2019-06-03installer: reorganise and add commentsMarc Cornellà
2019-06-03installer: use tabs to allow future heredocsMarc Cornellà
This will allow us to use tab stripping heredocs with `<<-'. See http://www.tldp.org/LDP/abs/html/here-docs.html#EX71A Add editorconfig file to enforce this style. See http://editorconfig.org for more information.
2019-06-03installer: use exit-on-error from the beginningMarc Cornellà
2019-04-18Remove dots from installer URLs (#7780)Guillermo Azurdia
2019-04-07upgrade: fix lock-out on first upgrade checkMarc Cornellà
This early return made it so the lock wasn't removed, therefore locking out the upgrade script from ever entering the upgrade routine. Fixes #6138 Note: the logic needs some rework.
2019-02-25Updating Oh My Zsh shop URLs (#7619)Robby Russell
* Updating Oh My Zsh shop URLs Linking directly to the Oh My Zsh inventory vs the top-level store with non-OMZ items. * Updating link to Oh My Zsh products in the install script * Updating link to Oh My Zsh shop products in the upgrade script * Getting rid of 't-' in shirts for now
2019-01-15installer: make TEST_CURRENT_SHELL use basename (#7514)Jackson Delahunt
Fixes #7492
2018-08-07use https everywhere (#6574)Janosch Schwalm
* use https everywhere * use https links on the files that are left Also, removed some broken links and updated redirections.
2018-07-01Login shell after install (#5314)Joel Kuzmarski
Otherwise these files are not sourced: 1. /etc/zprofile 2. ~/.zprofile 3. /etc/zlogin 4. ~/.zlogin 5. ~/.zlogout 6. /etc/zlogout
2018-06-15Fixed Issue #4550: Move ~/.zsh-update file to $ZSH_CACHE_DIRChao Du
2018-06-13Quote $ZSH where necessary in install script (#6587)Dan Wallis
Quote $ZSH where necessary in install script
2018-05-15Update the update prompt (#6825)Gert de Pagter
`[Oh My Zsh] Would you like to check for updates? [Y/n]: ` does not make sense, since answering yes will download/apply the new updates instead of checking for them.
2018-05-07fix bug for check zsh (#6798)ningwei1993
2018-05-05installer: check if zsh in path instead of /etc/shellsMarc Cornellà
Fixes #4955 Closes #5931 Closes #6398 Co-authored-by: Void <vst4rbot@gmail.com> Co-authored-by: Kaleb Elwert <belak@coded.io>
2018-04-17[installer] use `command -v` to check for gitMarc Cornellà
Quick fix to the script not finding git due to hash. Solves #6697.
2017-11-01Use HTTPS for Planet Argon links (#6326)Doug Yun
2016-10-03Convert "if then" statements to "if; then" one-linersFabian Wolff
2016-10-03Use rmdir instead of rm -rFabian Wolff
2016-10-03Implement a locking mechanism to avoid multiple update prompts (fixes #3766)Fabian Wolff
2016-08-09Replace /bin/sh with sh for portability (#5291)Fredrik Fornwall
This makes things work even on system lacking /bin/sh, such as on non-rooted Android systems.
2016-06-16Remove undesirable hardcoding of PATH into zshrc (#4925)Felipe Vargas
See robbyrussell@b67961d
2016-05-31installer: fix ordering of cygwin msys git check (#4557)Andrew Janke
2015-12-15Use consistent wording when updatingRobin Hallabro
When the user is asked to update oh-my-zsh it says "[Oh My Zsh] Would you like to check for updates? [Y/n]:". When the user agreed to update the next text would say "Upgrading Oh My Zsh" which is inconsistent with the question.
2015-11-29Merge pull request #4207 from mpscholten/masterMarc Cornellà
Also accept any forms of yes as an answer to the "do you want to update?" prompt
2015-11-04Removing `source` commandLE Manh Cuong
2015-10-23Change coding styleLE Manh Cuong
2015-10-23Update uninstall.shLE Manh Cuong
- Need dot `.` for POSIX compliant instead of `source` - Use modern syntax for command substitution - Fix missing double quotes
2015-10-21Fix backwards logic in uninstaller once and for allMarc Cornellà
Really this time :P Fixes #4533