Repository: haithembelhaj/oh-my-cygwin Branch: master Commit: 8b3b0fe0f277 Files: 2 Total size: 1.8 KB Directory structure: gitextract_g98qh9jv/ ├── README.md └── oh-my-cygwin.sh ================================================ FILE CONTENTS ================================================ ================================================ FILE: README.md ================================================ # Warning: Deprecated # OH MY CYGWIN Looking for a real Terminal for Windows? Relax you just found it. This sets up a working ZSH Shell powered by [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) and the [apt-cyg](http://code.google.com/p/apt-cyg/) package manager. I took care of installing and configuring some packages so that you have vim, git and ssh just one keystroke away. # Setup Install [cygwin](http://www.cygwin.com/) with wget (check wget in the installation process) then start cygwin and execute wget --no-check-certificate https://raw.github.com/haithembelhaj/oh-my-cygwin/master/oh-my-cygwin.sh -O - | sh Et Voila! Your windows Terminal will look like this ![oh-my](https://coderwall-assets-0.s3.amazonaws.com/uploads/picture/file/1297/oh-my-cygwin.PNG "OH-MY-OH-MY") ================================================ FILE: oh-my-cygwin.sh ================================================ #!/bin/bash set -e # cd home cd ~ SIMPLE_BACKUP_SUFFIX=".orig" APT_CYG="$(mktemp /tmp/apt-cyg.XXXXXXXX)" # install apt-cyg wget --no-check-certificate "https://github.com/john-peterson/apt-cyg/raw/path/apt-cyg" -O "${APT_CYG}" chmod +x "${APT_CYG}" # install some stuff like vim and git "${APT_CYG}" install zsh mintty vim curl git openssh # install OH MY ZSH git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh # Create initial /etc/zshenv [[ ! -e /etc/zshenv ]] && echo export PATH=/usr/bin:\$PATH > /etc/zshenv install --backup ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc #setting up vim VIMRC_EXAMPLE=`find /usr/share/vim -type f -name vimrc_example.vim | head -n 1` if [ ! -f ~/.vimrc ] && [ -n "${VIMRC_EXAMPLE}" ] then install "${VIMRC_EXAMPLE}" ~/.vimrc fi # install apt-cyg install --backup "${APT_CYG}" /bin/apt-cyg # 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