Commit graph

28 commits

Author SHA1 Message Date
Mathieu Comandon
c9e06a8aff Don't try running chsh if user already runs zsh 2014-11-28 14:37:14 +01:00
Fredrik Fornwall
0abd191230 Replace /usr/bin/env with env
Some environments (such as Android) does not have /usr/bin.
2014-11-28 14:37:14 +01:00
Henrik Holm
5d21684632 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-11-28 14:37:02 +01:00
Robby Russell
eeff790278 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-11-28 14:36:31 +01:00
Andrew Vit
ca1b0015f7 Abort installer on errors 2014-11-28 14:36:30 +01:00
Andrew Vit
5dbf98e62d Write install path into .zshrc 2014-11-28 14:36:30 +01:00
Andrew Vit
84bfd013fe Reference default install path from ZSH variable 2014-11-28 14:36:30 +01:00
Andrew Vit
d4d20351fc 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.
2014-11-28 14:36:21 +01:00
dongweiming
833651c762 Modify determine the oh-my-zsh installed in non-default path of the installed 2014-11-28 14:36:04 +01:00
Sergey Lukin
9a97fae1e9 Fix /bin/sh compatibility issue in install.sh 2014-11-28 14:36:03 +01:00
Henry Yan
d55262b6a1 Added $PATH to PATH in install shell 2013-04-07 20:59:01 +08:00
Probably Not
dfbafe6d58 Fixing conflict in install scripts 2012-12-02 13:08:06 -08:00
Eric Mathison
b0cf0674ef Fix color syntax 2012-10-21 02:19:56 -07:00
Renan Cakirerk
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
Daniel Lockard
12e181c6f6 Added an if-statement to see if git is installed 2012-04-04 13:04:00 -05:00
Andrew Hodges
0c41b1cdc3 Colorize Install & Upgrade Scripts
Make tools/install.sh and tools/upgrade.sh pretty.
2011-06-03 14:05:25 -04:00
Arthur Kalmenson
1354eb1248 Changed to use which. 2011-04-18 22:51:28 -04:00
Arthur Kalmenson
5f415c465a Change URL to https since most corporate environments block git port. 2011-04-18 07:50:14 -04:00
Arthur Kalmenson
1e2152fcf3 Make the chsh more reliable. 2011-04-18 07:48:35 -04:00
Robby Russell
aeabc3f616 Switching to /usr/bin/env zsh instead of /bin/zsh in the installer 2010-08-19 08:04:18 -07:00
Robby Russell
5a3bde78d8 Sprinkling some candy on this muffin. 2010-05-07 15:35:03 -07:00
Toon Claes
886d97f41e Removed useless else 2009-10-16 23:03:50 +02:00
Robby Russell
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
Robby Russell
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
Robby Russell
13ca4fab1a Changing order of loading zsh at end of install 2009-08-30 18:51:41 -07:00
Robby Russell
684eae38af Attempting to load zsh properly after auto-install 2009-08-30 18:50:09 -07:00
Robby Russell
3ec52a1353 Checking if .zshrc is a file or a symlink. 2009-08-30 18:44:14 -07:00
Robby Russell
71769107db Adding an installer tool 2009-08-30 18:36:11 -07:00