hakanersu
1/25/2018 - 8:46 PM

oh-my-zsh on WSL on hyper

oh-my-zsh on WSL on hyper

Installing Zsh, Ohmyzsh and setting Hyper on WSL

After installing wsl you wont have curl or git so i guess you can figure out and i guess you know about hyper.is.

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

Configuring Zsh for Start

Just edit .bashrc with nano or vi and add this line to start of file.

bash -c zsh

Now it will start with zsh but it will startup /mnt/c/Users/YourUserName directory and i dont really like it. Lets configure hyper with home directory.

Configuring Hyper

Actually hyper has good documentation on settings file but lets just do it together;

shell: 'C:\\Windows\\System32\\bash.exe',

and shell arguments to;

shellArgs: ['~', '--login'],

this will cd on your home directory and thats all.