site logo

by Frank Lin in Quick Tips
2018-09-06 1 minute to read 1 views 0 comments

Hyper is an Electron-based terminal and can be used as an alternative to ConEmu as the terminal emulator. The main reason for me to use Hyper is its appearance, it looks pretty good : ). Besides that, it has a number of plugins and features available compared with the cmd on Windows.

Cmder is a software package created as a nice console emulators on Windows. It has numerous other features, including tabs, nice utilites like ls and grep, and so on.

Combining these two together would be a great try.

Here is the steps I followed:

  1. Install the Windows package manager chocolatey by running the following command in cmd.exe (run as Administrator):

     @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
    
  2. After that, install sudo with chocolatey, still in cmd.exe in administrator mode:

     choco install sudo
    

    By doing so, you can install packages (softwares) with Administrator permissions using sudo choco install xxx.

  3. Install Cmder with chocolatey:

     sudo choco install Cmder
    

    This will also install the git-for-windows.

  4. Install Hyper with chocolatey:

     sudo choco install hyper
    
  5. Now, config Hyper environment. Open Hyper, and then open the Preferences config file (Ctrl + ,). Navigate in the .hyper.js configuration file, find and modify these variables according to the following lines:

     shell: 'cmd.exe',
     shellArgs: ['--login', '/k', 'C:\\tools\\cmder\\vendor\\init.bat'], // path to Cmder init.bat
     env: { 'TERM', 'cygwin' }, // required for git-for-windows
    

Yeah, that’s it. Re-launch Hyper, you should be greeted with Cmder started in Hyper…

Then, happy coding~

Cmder Hyper