WSL + Hyper.js + tmux

In these days I focused on getting a better shell for my win10 host. I wanted a more reliable way to save shells and what’s better than the most loved tmux?

Moreover, I wanted a nice terminal, thus I gave Hyper a try.

Edit your ~/.hyper.js on your win10 host and edit the following lines:

1
2
3
4
5
6
module.exports = {
  // ...
  shell: 'C:\\Windows\\System32\\wsl.exe',
  // ...
  shellArgs: [],
}

Now edit your ~/.tmux.conf on your linux guest and edit as follows:

1
2
3
4
5
6
7
8
# use bash
set -g default-command "/bin/bash"

# enable colors
set -g default-terminal "screen-256color"

# use vim hotkeys in view / copy mode (enter with "ctrl+b [")
set -g mode-keys vi

NOTE: if you prefer you can set the scroll mode hotkeys Emacs style. This is needed because unfortunately Hyper doesn’t seem to support mouse events in win10 yet.

At last but not least, check your tmux path (using cat /etc/shells or, in alternative, which tmux) and then proceed to set tmux as your default shell using chsh.

Here is a screenshot of how my current setup looks like