WSL setup

December 17, 2017 ยท View on GitHub

Terminal and bash

Terminus (shown above) and Hyper are feature-packed and look amazing, BUT they have a noticable delay when typing and scrolling in an editor like vim. Thankfully, Bash on Ubuntu on Windows does not have any of these perf issues.

Bash on Ubuntu on Windows uses the new WSL (Windows Linux Subsystem) to get an almost first-class bash on Windows.

Note that ~, or /home/<username>, is your home for the subsystem. If you want to go to your Windows file home (typically on the C:\ drive), go to /mnt/c/Users/<username>. This did confuse me at first. See this for more.

Git

Already installed, I think.

Set up your Github keys (even if you've already set them up in non-WSL land): Generating a new SSH key and adding it to the ssh-agent - User Documentation

Node

curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs

from Installing Node.js via package manager | Node.js

Not sure why, but I had to fix my `npm' permissions: Fixing npm permissions | npm Documentation

Non-WSL

WSL is nice for when you're able to stay in non-GUI unix-land, but eventually you'll probably need to use native windows apps like intellij, vs code, etc that will need windows-native git, node, etc.

Git

Install from Git - Downloading Package. I prefer to not deal with Github Desktop

Set up github keys (even if you've already set them up in WSL land): Generating a new SSH key and adding it to the ssh-agent - User Documentation

Then add it to your account: Adding a new SSH key to your GitHub account - User Documentation

Node

coreybutler/nvm-windows: A node.js version management utility for Windows. Ironically written in Go.

Familiar to MacOS

Window Management

  • use WinDivvy to move/position windows with your keyboard. Closest Windows app I could find to Moom.
  • How to pin an app to a Virtual Desktop?
    • win tab to see task view
    • right click window -> Show this window on all desktops
  • eXtra Buttons: utility buttons in the title of the window
    • Adds buttons to titlebar to Always on Top, Roll Up/Down, Send to Back, Opacity, etc.

Utils

Settings

Tools

Other Reads