Normally we talk how to decorate iTerm2 on Mac with Homebrew, ZSH. In case you lack idea about terminal emulators, read this article on terminal emulator, Terminal.
This guide is on how to install, configure ZSH on Windows 10 to get UNIX looking terminal i.e. like iTerm2 on Mac. Packages, Themes, Plugins, Config Files are essentially the same. You already need working Windows Subsystem for Linux on your system. For that, go to [Settings] > [Update and Security] > [For developers] and change Sideload apps setting to Developer mode. Next, open command prompt and go to OptionalFeatures.exe
and enable Windows Subsystem for Linux (Beta). Reboot your computer. After reboot, you need to open command prompt and use bash command. Automatic downloading and installation of Linux Subsystem will start only by accepting some stuffs. We have three Linux distributions in Windows Store to choose from and we will prefer Ubuntu. Ubuntu will have aptitude package management. MacOS X has nothing, that’s why we use HomeBrew. For Linux, it’s GNU Linux version Linux Brew exists. We will not show Linux Brew installation. We will show :
- Installation & Tweak of ZSH (actually Oh-My-ZSH)
- Installation & Tweak of Hyper Terminal
At end, your Windows 10 may be referred as “Ubuntu Server” for our various guides.
---
Install, Configure ZSH on Windows 10 : Get UNIX Looking Terminal
Open your that bash Terminal. Run :
1 2 3 4 5 6 7 8 9 | sudo apt-get install curl # install git sudo apt-add-repository ppa:git-core/ppa sudo apt-get update sudo apt-get install git # install zsh sudo apt-get install zsh # install oh-my-zsh curl -L https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh | bash |
I kept needed files on my this GitHub project (you’ll need for config files of this guide).
Find .bashrc
from the above repository. Open your .bashrc
:
1 | nano ~/.bashrc |
and make like mine. Then reload :
1 | source ~/.bashrc |
Go to official hyper terminal website and download latest version of terminal for Windows :
1 | https://hyper.is/ |
After installing Hyper Terminal, open %USERPROFILE%/.hyper.js
` config file from Menu > [Edit] > [Preferences…] and replace line:
1 | shell: '', |
with
1 | shell: 'C:WindowsSystem32bash.exe', |
If you run :
1 | zsh |
you’ll switch to ZSH. If you run :
1 | bash |
you’ll switch to bash. For ZSH, install Oh-My-ZSH plugin as example plugin :
1 2 3 4 5 6 | git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting <pre> Run : <pre>nano ~/.zshrc |
Make the appropiate line in that file like :
1 | plugins=(git zsh-syntax-highlighting) |
Then reload :
1 | source ~/.zshrc |
In case of Mac, we use iTerm2. On Windows, we are using Hyper Terminal. ZSH has lot of themes :
1 | https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
ZSH has lot of plugins too. You can use anything to decorate.
Hyper Terminal also has lot of stuffs :
1 | https://github.com/bnb/awesome-hyper |
If you copy my hyper.js from GitHub, you’ll get this :
1 | https://github.com/equinusocio/hyper-material-theme |