Skip to content

Instantly share code, notes, and snippets.

@hakanersu
Last active January 25, 2018 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakanersu/6b123684a52e9f7ebed554dbc9ae9b94 to your computer and use it in GitHub Desktop.
Save hakanersu/6b123684a52e9f7ebed554dbc9ae9b94 to your computer and use it in GitHub Desktop.
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment