summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2015-10-21Fix backwards logic in uninstaller once and for allMarc Cornellà
Really this time :P Fixes #4533
2015-10-21Fix conditional in uninstall promptMarc Cornellà
2015-10-21Fix syntax error in confirmation prompt of uninstall.shMarc Cornellà
We need to use POSIX syntax. This file is no longer executed with zsh. Fixes #4483.
2015-10-21Fix syntax error in #4515 on certain shellsMarc Cornellà
Drops the `function` keyword and uses only `func(){}` syntax as per the POSIX specification: http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_05 Related: #4531
2015-10-21Revert "Make install script safer"Marc Cornellà
This reverts commit c9d93757e82785a0fd1e0d1222f5d61e01849703, which makes it fail with a syntax error: sh: 1: Syntax error: "(" unexpected
2015-10-20Merge pull request #4507 from WhyEee/fix-no-tputMarc Cornellà
Fix install.sh/upgrade.sh for tput-less systems
2015-10-20Merge pull request #4505 from arvindch/checked-upgradeMarc Cornellà
Check for git before trying to upgrade OMZ
2015-10-20Make install script saferBrian J Brennan
This changeset wraps all of the commands in tools/install.sh in a function and then calls that function as the last line of the script. The current install instructions ask the user to download the install script using `curl` and pass the result to `sh`. This is totally fine (as long as both the instructions and the script itself are served using HTTPS), but the script should be written in a way such that it doesn't start trying to actually *do* anything until the very last line. The reason is due to the way `curl` work: if the socket drops before the request is complete (server abruptly hangs up, client's internet flakes out, etc.), `curl` will return the partial data that it received. Here is an example of that: ![partial file execution](https://cldup.com/qU_Mnh2GmT.png) A way this might cause issues for tools/install.sh is if the connection drops after cloning but before the repository (L53-56). The .zshrc configuration will not be copied and the shell will not be changed, but if the user tries to run the install script again it will claim oh-my-zsh is already installed (L31-39). While this is not a particularly dangerous error condition (the user can just delete .oh-my-zsh and re-run), it can certainly be confusing for new users. This also helps future-proof the script for a time when it might need to use a "dangerous" command, e.g. `rm`, and we want to make sure it happens in the most transactional way possible.
2015-10-20Merge pull request #4419 from apjanke/installer-termcap-hackMarc Cornellà
installer: ignore errors in color setup, for FreeBSD portability
2015-10-16Fix install.sh/upgrade.sh for tput-less systemsYannick Eckey
@fcrozat's original fix assumes `which` not to output anything to STDOUT in case the command is not found. That is not necessarily true on all systems. A better solution is to check the return value instead. Fixes #4376
2015-10-16Check for git before trying to upgrade, as per #4504Arvind Chembarpu
2015-10-05Ask for confirmation before uninstallRodrigo Chiossi
Prompt the user before removing oh-my-zsh from the system
2015-09-28installer: don't bail on errors in color setupAndrew Janke
This is a hack to keep the installer working on systems without tput/terminfo.
2015-09-26Merge pull request #3646 from apjanke/installer-cygwin-support-3Robby Russell
Add Cygwin support to installer.
2015-09-23Merge branch 'master' into installer-cygwin-support-3Andrew Janke
Conflicts: tools/install.sh
2015-09-22also handle missing tput in upgrade script.Frederic Crozat
2015-09-21Do not fail if tput is not availableFrederic Crozat
Fixes issue #4376
2015-09-19Merge branch 'master' into installer-portable-colorsAndrew Janke
2015-09-19Merge pull request #3889 from leycec/compauditRobby Russell
Repair `zsh` Path Permissions on `oh-my-zsh` Startup under Cygwin
2015-09-03Merge changes from #4241 into installer-portable-colorsAndrew Janke
Conflicts: tools/install.sh tools/upgrade.sh
2015-09-03Add Cygwin support to installer.Andrew Janke
* Balk at incompatible Windows/MSYS git * Test for chsh presence before trying to use it * Replace non-portable `[[ ... ]]` and `[ x = *pattern* ]` constructs
2015-08-30Merge pull request #4241 from heartinpiece/masterRobby Russell
Check if Zsh is installed prior to installing Oh My Zsh
2015-08-30Merge pull request #4249 from KrauseFx/patch-1Robby Russell
Use https instead of http
2015-08-30Merge pull request #3613 from apjanke/remove-sed-iRobby Russell
Installer: Remove "sed -i" for portability and hygiene
2015-08-27installer: switch twitter link to httpsAndrew Janke
2015-08-16Use https instead of httpFelix Krause
2015-08-12Check if Zsh is installed prior to installing Oh My ZshChang Hyun Park
Check if Zsh is installed before installing anything else. New-commers, or people who don't read the disclaimers(ex. me) will go straight to stack overflow if chsh -s returns an error.
2015-08-03Also accept any forms of yes as an answer to the "do you want to update?" promptMarc Scholten
2015-07-20Cygwin-specific "chsh" installation issue fixed.leycec
Installation previously assumed the existence of a "chsh" command in the current ${PATH}. Since Cygwin does *NOT* provide this command, installation now tests for the existence of this command before attempting to run it.
2015-07-20Secure umask enforced during installation.leycec
For safety, a umask of 022 prohibiting both group and other writability is now enforced during OMZ installation. In theory, this should reduce the likelihood of subsequent compinit() failures due to insecure directory permissions under all platforms except for default Cygwin installations (in which Windows ACLs override POSIX umasks).
2015-07-06installer: use terminfo for portable escape sequencesAndrew Janke
Do not use terminal visual effects if not connected to a terminal.
2015-07-06install.sh: use portable printf instead of echoAndrew Janke
2015-06-10No input for Update Check defaults to YesHeroCC
2015-05-05Fix 'chsh' by checking '/etc/shells' instead of using 'which'Pablo Tamarit
fix test for chsh in install in case $SHELL is zsh but not the last one in /etc/shells fixes #3026 fixes #3779 fixes #3780
2015-02-20install.sh: Replace nonstandard "sed -i" with sed + mv commands. Makes ↵Andrew Janke
portable to systems whose sed lacks "-i", like OpenBSD.
2015-02-10Merge pull request #3353 from mizabrik/masterRobby Russell
Save ZSH path in newly created .zshrc
2015-01-15Fast installation time by shallow copying git repoNicholas T.
Use `--depth=1` to clone just the lastest version rather than every version in git.
2014-12-15fix(tools/check_for_upgrade): Don't source profileMark Feltner
Reverts #2296, but mostly #1883. There is no need to source ~/.profile when this script is read. oh-my-zsh writes no configuration data in ~/.profile. If the user wishes to use data within ~/.profile, then they should source it in another place. Fixes #2315
2014-11-28Save ZSH path in newly created .zshrcmizabrik
2014-11-06Merge pull request #2946 from moinakg/masterRobby Russell
Solaris portability tweaks.
2014-10-14Change to epoch target in days instead of seconds.Moinak Ghosh
2014-09-17Convert epoch_target from days to seconds.Moinak Ghosh
2014-09-16Update Solaris changes to use OSTYPE and zsh datetime module.Moinak Ghosh
2014-08-31Merge pull request #3049 from strycore/masterRobby Russell
Prevent chsh from running when $SHELL is already zsh
2014-08-31Link to swag in installer... shameless profitingRobby Russell
2014-08-31Adding link to the store for swag in upgrade processRobby Russell
2014-08-21Don't try running chsh if user already runs zshMathieu Comandon
2014-08-20Replace /usr/bin/env with envFredrik Fornwall
Some environments (such as Android) does not have /usr/bin.
2014-07-11Solaris portability tweaks.Moinak Ghosh
2014-06-04Cancel upgrade if $ZSH is not writablen.st
from #2360