Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Make shell for installer ZSH instead of SH #1623

Closed
wants to merge 2 commits into from

2 participants

@rallias

The installer script fails spectacularly in an ugly mess. This makes the color happen.

rallias added some commits
@rallias rallias Editing so that user uses zsh rather than sh
The install script is built for zsh, whereas /bin/sh is not guaranteed to be linked to /bin/zsh. This script makes this slightly happier.
b7d0f8c
@rallias rallias Apply proper shebang to this script
SH is buggy.
0cfbc08
@robbyrussell

@rallias thanks, but i'm a little nervous about hardcoding the path to zsh to /bin/zsh in your shebang statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 22, 2013
  1. @rallias

    Editing so that user uses zsh rather than sh

    rallias authored
    The install script is built for zsh, whereas /bin/sh is not guaranteed to be linked to /bin/zsh. This script makes this slightly happier.
  2. @rallias

    Apply proper shebang to this script

    rallias authored
    SH is buggy.
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +2 −2 README.textile
  2. +2 −0  tools/install.sh
View
4 README.textile
@@ -13,11 +13,11 @@ You can install this via the command line with either `curl` or `wget`.
h4. via `curl`
-@curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh@
+@curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | zsh@
h4. via `wget`
-@wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh@
+@wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh@
h3. The manual way
View
2  tools/install.sh
@@ -1,3 +1,5 @@
+#!/bin/zsh
+
if [ -d ~/.oh-my-zsh ]
then
echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove ~/.oh-my-zsh if you want to install"
Something went wrong with that request. Please try again.