Login
A chronicle of the thoughts, learning experiences, ideas and actions of a tech junkie, .NET, JS and Mobile dev, aspiring entrepreneur, devout Christian and travel enthusiast.
Using Git Bash with Hyper On Windows
If you don't know what Hyper is, it is a beautiful, cross-platform terminal app for Windows, Mac OS and Linux built by the nice folks over at zeit.co using electron and React. I naturally have an aversion to apps built with electron because as a general rule, they consume more system resources than a native application would but I could not pass this up and a look at my terminal would give you an inkling I couldn't.
To install Hyper, follow the steps laid down below:
head to the project website at https://hyper.is/ and click on the "Download for Windows" button. This downloads an *.exe
installer file to your Downloads
folder or wherever you save downloaded files to.
Navigate to the folder using Explorer
and double click on the installer. The installer copies the necessary files to the necessary places and notifies you once that is done.
Search for Hyper in the start menu or double click the shortcut on your Desktop
and you should see a terminal interface similar to the one shown below.
If you are like me, you would not install Hyper to use CMD
so it is time to pimp the terminal up and make bash
our default shell for Hyper. My assumption is that you have Git for Windows installed. if you don't, follow this guide. With that done, follow the steps:
hyper
binary added to your PATH
. Click the top left hamburger menu (☰) => Plugins => Install Hyper CLI command in PATH.Close and reopen your terminal (this may be necessary to refresh the shell)
Run the command hyper i hyper-afterglow
to install the hyper-afterglow
theme and give your terminal beautiful colours.
Click the top left hamburger menu (☰) => Edit => Preferences or Ctrl + ,
. A file .hyper.js
would be opened in Notepad
Change the shell
key in the config
to the following:
config: {
...
shell: 'C:\\Program Files\\Git\\git-cmd.exe',
...
}
Change the shellArgs
key in the config
to the following:
config: {
...
shellArgs: ['--command=usr/bin/bash.exe', '-l', '-i'],
...
}
Change the env
key in the config
to the following:
config: {
...
env: {TERM: 'cygwin'},
...
}
Save the file and close Notepad.
Close and reopen Hyper and see a terminal you'd actually like using.
This is an open-source project and if you want to contribute by fixing bugs, implementing features or just filing issues, you can do that at https://github.com/zeit/hyper
Cheers
Comments