Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 https://raw.github.com/haithembelhaj/oh-my-cygwin/master/oh-my-cygwin.sh -O -

I get this output

Jitendra Vyas@JitendraVyas ~
$ wget --no-check-certificate https://raw.github.com/haithembelhaj/oh-my-cygwin/                                                                                                                                  master/oh-my-cygwin.sh -O -
--2013-11-06 22:49:50--  https://raw.github.com/haithembelhaj/oh-my-cygwin/maste                                                                                                                                  r/oh-my-cygwin.sh
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:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Resolving raw.github.com... 103.245.222.133
Connecting to raw.github.com|103.245.222.133|: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 https://github.com/john-peterson/apt-cyg/raw/path/ap                                                                                                                                  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://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
then
  cp ~/.zshrc ~/.zshrc.orig;
  rm ~/.zshrc;
fi
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
1  
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 at 12:43

2 Answers 2

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 https://raw.github.com/haithembelhaj/oh-my-cygwin/master/oh-my-cygwin.sh -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 install.sh

wget --no-check-certificate https://raw.github.com/haithembelhaj/oh-my-cygwin/master/oh-my-cygwin.sh -O install.sh

Then, check what it's doing (less install.sh) and only then execute it

sh install.sh
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 screenpresso.com/=W1uae –  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 README.md 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 https://raw.github.com/haithembelhaj/oh-my-cygwin/master/oh-my-cygwin.sh -O - | sh

...which should work.

share|improve this answer

Your Answer

 
discard

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.