Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed Cygwin on my windows 8.1 Now I want to install ZSH and Oh My ZSH in cygwin.

I have installed ZSH in it by selecting Shells > Zsh in Select screen.

enter image description here

and I found this link to install Oh my ZSH but when I run given command on this page

wget --no-check-certificate -O -

I get this output

Jitendra Vyas@JitendraVyas ~
$ wget --no-check-certificate                                                                                                                                  master/ -O -
--2013-11-06 22:49:50--                                                                                                                                  r/
cygwin warning:
  MS-DOS style path detected: E:\RailsInstaller\cacert.pem
  Preferred POSIX equivalent is: /cygdrive/e/RailsInstaller/cacert.pem
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
Connecting to||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 826 [text/plain]
Saving to: `STDOUT'

 0% [                                       ] 0           --.-K/s              #                                                                                                                                  !/bin/bash

# install apt-cyg
wget --no-check-certificate                                                                                                                                  t-cyg
chmod +x apt-cyg
mv apt-cyg /bin/apt-cyg

# install some stuff like vim and git
apt-cyg install zsh mintty vim curl git openssh git-completion git-gui gitk

#setting up vim
cp /usr/share/vim/vim73/vimrc_example.vim ~/.vimrc

# Create initial /etc/zshenv
[[ ! -e /etc/zshenv ]] && echo export PATH=/usr/bin:\$PATH > /etc/zshenv

# install OH MY ZSH
/usr/bin/env git clone git:// ~/.oh-my-zsh
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
  cp ~/.zshrc ~/.zshrc.orig;
  rm ~/.zshrc;
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

# setting up zsh as default
sed -i "s/$USER\:\/bin\/bash/$USER\:\/bin\/zsh/g" /etc/passwd

# et voila just start it
/usr/bin/env zsh

100%[======================================>] 826         --.-K/s   in 0.09s

2013-11-06 22:49:51 (8.64 KB/s) - written to stdout [826/826]

but i didn't get this screen

enter image description here

share|improve this question
Saving to: `STDOUT' - I don't think that's right, it should be saving to file STDOUT would be the terminal, I think? – Sathya Nov 6 '13 at 17:27
I had this same problem, so I submitted a pull request to the repo owner. Now it's easier to copy and paste the installation command. – Rodrigo López Dato Jan 16 '14 at 12:43

Because of a missing line break on the source page, you missed the most important part of the install command: sh. The complete command should read

wget --no-check-certificate -O - | sh

And given that, writing to stdout make perfectly sense.

However, better be always careful and don't blindly pipe an unknown script to sh. Instead you can download the commands to a file

wget --no-check-certificate -O

Then, check what it's doing (less and only then execute it

share|improve this answer
O.O both of us answered "just now" (on my screen) with almost identical answers... dang – allquixotic Nov 6 '13 at 18:54
@allquixotic: Yes, nearly to the second... hehe. – mpy Nov 6 '13 at 18:55
@mpy thx for answer but even after running the correct command there is still problems – metal gear solid Nov 6 '13 at 19:39
@metalgearsolid I would suggest you execute the commands of the installation procedure (as listed in the outout in your question) manually. This way you can see which is the first problem. – mpy Nov 6 '13 at 21:55
@mpy I got problem only at last which is showing in screenshot – metal gear solid Nov 7 '13 at 4:45

If you look more closely at the github repo you just visited -- you will notice that the command line in the below the repository is cut off (truncated) due to the formatting of the HTML of the page.

If you go here you will see that the full command is:

wget --no-check-certificate -O - | sh

...which should work.

share|improve this answer

A little late, but you can try the following:

  • In order to install oh-my-zsh you can run the following commands:
  • with curl:
    curl -L | sh
  • with wget:
    wget --no-check-certificate -O - | sh
  • After installing oh-my-zsh, edit the file /etc/passwd
  • If you don't have that file, then you can create it with mkpasswd command:
  • $ mkpasswd > /etc/passwd
  • Then you edit that file, find your user-name and replace the end of line by /bin/zsh
  • e.g. david:*:...:U-JHERAX\david,...:/home/david:/bin/zsh
  • Take into account that if your logon user-name has spaces, then you should rename in order to avoid problems (see section 2.16.My Windows logon name has a space in it, will this cause problems?)
  • If you want to edit the zsh theme, you must edit the file /home/<user>/.zshrc and you'll see an environment variable ZSH_THEM then you set your favorite theme, e.g. ZSH_THEME="ys" (more info in github site oh-my-zsh)

Recomended article: Instalar "oh my zsh" y cygwin en Windows
Also worth checking out: Shortcuts to improve your bash & zsh productivity

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.