In this article, we are going to show you how to install Cygwin + Oh My ZSH and configuration on windows which gives a consistent cross-platform terminal experience on Windows.
Cygwin gives you comfortable when your web development workflow use git, node, npm, docker, wp-cli, etc.
In the end of this article, you will be able to use Cygwin with ZSH with this awesome theme.
Step #1: Installation Cygwin
- Download Cygwin https://cygwin.com/install.html
- Choose A Download Source:
Install from Internet
- Select Root Install Directory: for me I select
D:\dimacode\cygwin
- Install For All Users
- Select Local Package Directory:
D:\dimacode\cygpack
- Select Your Internet Connection:
Direct Connection
- Choose A Download Site:
[http://mirrors.xmission.com](http://mirrors.xmission.com/)
This mirror was reliable for me. They should generally all be up to date. It is recommended that you select a mirror site that is closest to you. Visit the Cygwin Mirror Sites page for more information.
Select Packages:
- curl: Muti-protocol file transfer tool
- fzf-zsh: fzf key bindings for Z shell
- fzf-zsh-completion: fzf completion for Z shell
- git: Distributed version control system
- gitk: Git repository browser
- zsh: The Z-Shell
- wget: utility to retrieve files from the WWW via HTTP and FTP
Step #2: Install Oh My ZSH
Launch Cygwin and install Oh My ZSH using curl
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Step #3: Theme Configuration
For text, I have the Powerline fonts installed on my system.
- download PixelDima zsh-theme from here and replace it with
cygwin\home\USER\.oh-my-zsh\themes
- Open
.zshrc
fromcygwin\home\USER\
changeZSH_THEME
intoZSH_THEME="pixeldima"
- Open
.minttyrc
fromcygwin\home\USER\
and replace it with this configuration.
~/.minttyrc
BoldAsFont=-1
Padding=18
FontSmoothing=full
Font=Inconsolata-dz for Powerline
FontHeight=11
FontWeight=500
BackgroundColour=9,41,51
CursorColour=9,41,51
Black=9,41,51
Red=#F92672
Green=#82B414
Yellow=#FD971F
Blue=#268BD2
Magenta=#8C54FE
Cyan=#56C2D6
White=#CCCCC6
BoldRed=#FF5995
BoldBlack=#505354
BoldGreen=#B7EB46
BoldYellow=#FEED6C
BoldBlue=#62ADE3
BoldMagenta=#BFA0FE
BoldCyan=#94D8E5
BoldWhite=#F8F8F2
Wrap Up
So, that’s all about it. There’s still a lot that you can do with Cygwin. It all depends on your choice and needs. It was a beginner-focused article to help you set up Cygwin with zsh in Windows and start customizing it.
If you have any questions, tips, or thoughts feel free to share in the comment box below.
(1) Comments
Hey,
I tried to install this theme on cygwin but i followed all the steps still i did not get the desired structure (as shown in the figure). only fonts and colours have changed.