Seamless integration Cmder in Hyper for a better terminal emulator on Windows

Seamless integration Cmder in Hyper for a better terminal emulator on Windows

a pleasant shell journey with hyper.js

Wanna a functional and beautiful terminal emulator on Windows other than cmd or powershell? Let’s do it by combining Cmder and Hyper.

Hyper is an Electron-based terminal that 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 than cmd.exe.

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

Combining these two powerful tool together would be a great trial on Windows.

Here are 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 if it’s not been installed.

  4. Install Hyper with chocolatey:

    sudo choco install hyper
    
  5. Now, config Hyper environments.

    Open Hyper, and then open the Preferences config file (Ctrl + ,). Navigate in the .hyper.js configuration file, find and modify these variables accordingly:

    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…

It’s also safe to install Cmder and Hyper manually without chocolatey, just ignore step 1 & 2.

Then, happy coding~

THE END
Ads by Google

林宏

Frank Lin

Hey, there! This is Frank Lin (@flinhong), one of the 1.41 billion . This 'inDev. Journal' site holds the exploration of my quirky thoughts and random adventures through life. Hope you enjoy reading and perusing my posts.

YOU MAY ALSO LIKE

Setup an IKEv2 server with strongSwan

Tutorials

2020.01.09

Setup an IKEv2 server with strongSwan

IKEv2, or Internet Key Exchange v2, is a protocol that allows for direct IPSec tunnelling between networks. It is developed by Microsoft and Cisco (primarily) for mobile users, and introduced as an updated version of IKEv1 in 2005. The IKEv2 MOBIKE (Mobility and Multihoming) protocol allows the client to main secure connection despite network switches, such as when leaving a WiFi area for a mobile data area. IKEv2 works on most platforms, and natively supported on some platforms (OS X 10.11+, iOS 9.1+, and Windows 10) with no additional applications necessary.

Ads by Google