Commit Graph

36 Commits

Author SHA1 Message Date
03b8c199e5 Fix 'chsh' by checking '/etc/shells' instead of using 'which'
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-05-05 19:49:19 +02:00
d2667bd0a2 Merge pull request #3353 from mizabrik/master
Save ZSH path in newly created .zshrc
2015-02-10 11:21:15 -08:00
5cb0ed98d1 Fast installation time by shallow copying git repo
Use `--depth=1` to clone just the lastest version rather than every version in git.
2015-01-15 09:09:41 +10:00
c6a8b2ea6d Save ZSH path in newly created .zshrc 2014-11-28 19:40:56 +03:00
c1cd9cb126 Merge pull request #3049 from strycore/master
Prevent chsh from running when $SHELL is already zsh
2014-08-31 11:42:40 -07:00
671bd0cf4f Link to swag in installer... shameless profiting 2014-08-31 11:32:07 -07:00
91ba6d9887 Don't try running chsh if user already runs zsh 2014-08-21 12:47:48 +02:00
dac2a6e27a Replace /usr/bin/env with env
Some environments (such as Android) does not have /usr/bin.
2014-08-20 23:52:05 +02:00
f46d06dae1 Correct redirection of output from 'hash'
The intention of the redirection to /dev/null is to hide the output
'hash: no such command: git' since we rely on the exit status.

However, the output goes to stderr, so it's stderr that needs to be
redirected. For completeness, we redirect both stderr and stdout using
'2>&1'.

Example:

  [~]$ hash git > /dev/null
  [~]$ PATH=''
  [~]$ hash git > /dev/null
  hash: no such command: git
  [~]$ hash git > /dev/null 2>&1
  [~]$
2014-03-30 10:34:13 -04:00
47b0d754ae Fixing a few quirks in the latest installer updates (quoting /Users/robbyrussell/.oh-my-zsh and such). Also mentioining our twitter account after install 2014-03-13 10:15:18 -07:00
da1fa3b06a Abort installer on errors 2014-03-08 13:17:16 -08:00
2e11e2ab5a Write install path into .zshrc 2014-03-08 13:16:46 -08:00
5bd590ceb3 Reference default install path from ZSH variable 2014-03-08 13:13:52 -08:00
6a2e65f4c8 Merge pull request #1402 from sergeylukin/master
Fix install.sh compatibility with /bin/sh
2014-03-08 08:39:34 -08:00
0d352109e9 Merge pull request #1087 from avit/install-template
Add configuration placeholders to installer template
2013-12-02 23:49:00 -08:00
1e9f55f09d Add configuration placeholders to installer template
Although the zshrc template adds a PATH= string, this is overwritten by the installer script.
This allows it to be placed anywhere in the file instead of having to append at the end.
2013-10-25 14:50:27 -07:00
d4a9467f89 Modify determine the oh-my-zsh installed in non-default path of the installed 2013-06-30 18:08:48 +08:00
d55262b6a1 Added $PATH to PATH in install shell 2013-04-07 20:59:01 +08:00
dfbafe6d58 Fixing conflict in install scripts 2012-12-02 13:08:06 -08:00
ebeae4abe9 Fix /bin/sh compatibility issue in install.sh 2012-11-09 23:53:22 +02:00
b0cf0674ef Fix color syntax 2012-10-21 02:19:56 -07:00
a39c9ffe5b Fix finding git issue. http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script 2012-06-23 14:58:04 +03:00
12e181c6f6 Added an if-statement to see if git is installed 2012-04-04 13:04:00 -05:00
0c41b1cdc3 Colorize Install & Upgrade Scripts
Make tools/install.sh and tools/upgrade.sh pretty.
2011-06-03 14:05:25 -04:00
1354eb1248 Changed to use which. 2011-04-18 22:51:28 -04:00
5f415c465a Change URL to https since most corporate environments block git port. 2011-04-18 07:50:14 -04:00
1e2152fcf3 Make the chsh more reliable. 2011-04-18 07:48:35 -04:00
aeabc3f616 Switching to /usr/bin/env zsh instead of /bin/zsh in the installer 2010-08-19 08:04:18 -07:00
5a3bde78d8 Sprinkling some candy on this muffin. 2010-05-07 15:35:03 -07:00
886d97f41e Removed useless else 2009-10-16 23:03:50 +02:00
b67961d812 Updating install process to copy your current environments PATH and adding it to the bottom of ~/.zshrc. 2009-09-07 09:11:34 -07:00
fcc1cde56c Updating installer to use the new template file. ~/.zshrc will now be outside of the repository 2009-09-01 07:50:45 -07:00
13ca4fab1a Changing order of loading zsh at end of install 2009-08-30 18:51:41 -07:00
684eae38af Attempting to load zsh properly after auto-install 2009-08-30 18:50:09 -07:00
3ec52a1353 Checking if .zshrc is a file or a symlink. 2009-08-30 18:44:14 -07:00
71769107db Adding an installer tool 2009-08-30 18:36:11 -07:00