Full Code of haithembelhaj/oh-my-cygwin for AI

master 8b3b0fe0f277 cached
2 files
1.8 KB
659 tokens
1 requests
Download .txt
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
Download .txt
gitextract_g98qh9jv/

├── README.md
└── oh-my-cygwin.sh
Condensed preview — 2 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (2K chars).
[
  {
    "path": "README.md",
    "chars": 823,
    "preview": "# Warning: Deprecated\r\n\r\n# OH MY CYGWIN\r\n\r\nLooking for a real Terminal for Windows?\r\nRelax you just found it. This sets "
  },
  {
    "path": "oh-my-cygwin.sh",
    "chars": 996,
    "preview": "#!/bin/bash\nset -e\n\n# cd home\ncd ~\n\nSIMPLE_BACKUP_SUFFIX=\".orig\"\nAPT_CYG=\"$(mktemp /tmp/apt-cyg.XXXXXXXX)\"\n\n# install ap"
  }
]

About this extraction

This page contains the full source code of the haithembelhaj/oh-my-cygwin GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 2 files (1.8 KB), approximately 659 tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!