Skip to content

Instantly share code, notes, and snippets.

@ederrafo
Last active May 7, 2019 14:49
Show Gist options
  • Save ederrafo/ffadc4f4230fe457c70db8f134be60c7 to your computer and use it in GitHub Desktop.
Save ederrafo/ffadc4f4230fe457c70db8f134be60c7 to your computer and use it in GitHub Desktop.
hyper terminal prompt
hyper 2.1.2 estable
widnows 10
https://medium.com/@myrlandnu/guide-to-install-and-configure-hyper-for-windows-10-52a829c97b25
resume:
# Solved problem text no dissapear
This is also an issue when trying to use vim in hyper on windows, or other programs/commands that requires to clear the output.
Well, there is one more thing you have to do. In the hyper settings, find the env property, and add the following:
// for environment variables
env: { TERM: 'cygwin' },
# Configure hyper with git bash
Configuring bash as default shell
Assuming you have git-bash installed, I’m guessing you want use it as your default shell. Well, thats easy! Have hyper selected, and hit up ctrl + , — and you are inside the .hyper.js config. In here, you want to find this section:
// the shell to run when spawning a new session
// if left empty, your system's login shell will be used by default shell: '',
// for setting shell arguments
// by default `['--login']` will be used
shellArgs: ['--login'],
Let’s change that to
// the shell to run when spawning a new session
// if left empty, your system's login shell will be used by default shell: 'C:\\Program Files (x86)\\Git\\bin\\bash.exe',
// for setting shell arguments
// by default `['--login']` will be used
shellArgs: ['-i'],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment