/hyperjs-wsl-zsh-powerlevel10k-config-on-windows

Configure your hyper.js terminal with zsh and powerlevel10k theme on windows, with easy default directory

MIT LicenseMIT

Configuration to use Hyper.js as a Zsh terminal with a Windows Subsystem Linux on windows 10, with Oh My Zsh and the Powerlevel10k theme

  • Go to : https://dev.to/vsalbuq/how-to-install-oh-my-zsh-on-windows-10-home-edition-49g2

  • install Windows Subsystem for Linux (WSL) on Microsoft Store (ex: Ubuntu)

  • install zsh

  • install oh my zsh

  • install powerlevel 10k

  • install fonts and set it on your terminal app (hyperjs) : https://github.com/romkatv/powerlevel10k#meslo-nerd-font-patched-for-powerlevel10k

  • Go to C:\Users\YourAccoutName\AppData\Roaming\Hyper

  • Open the file .hyper

  • Around line 95 change params to :

  •   `shell: 'C:\\Windows\\System32\\wsl.exe',`      
      
      `shellArgs: ['~'],`
    
  • Set default directory path of your zsh terminal

  •   `echo "cd ~/path" >> ~/.zshrc`
    
  • If your path is in another disk :

  •   `echo "cd mnt/disk_letter/eventually_a_folder" >> ~/.zshrc`
    
  • Reinstall node and npm for this shell :

  • This is for version 16 (view current LTS version):

      `curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -`
      
      `sudo apt-get install -y nodejs`
    
  • Then install build tools so you can install add-ons for npm later

      `sudo apt-get install -y build-essential`
    
  • Now you can type in

      `npm -v`
      
      `node -v`
      
      `Same thing: nodejs -v`
    
  • To summarise, edit ~/.profile and change your PATH to this:

      `PATH="$HOME/bin:$HOME/.local/bin:/usr/bin:$PATH"`