0.3.7 • Published 7 years ago
hyper-shellect v0.3.7
hyper-shellect
hyper-shellect is a small hyper plugin that lets you configure a menu of multiple shells that you can select from and switch between.
you can add and remove as many shells as your little heart desires, they're all stored in your .hyper.js
Preview

Install
- Run
hyper i hyper-shellector manually addhyper-shellectto your hyper plugins. - Add the shellect config to .hyper.js:
shellect: { colorsEnabled: true, shells: [ { shellName: 'zsh', shellCmd: '/bin/zsh' }, { shellName: 'bash', shellCmd: '/bin/bash' }, { shellName: 'node', shellCmd: '/usr/local/bin/node' }, { shellName: 'python', shellCmd: '/usr/bin/python' }, ] }, - Away you go!
Adding a shell
- Open your
.hyper.jsconfiguration file - Add a new object to
shellect.shellswith the shellName (a meaningful label) and the fullshellCmdtext for the shell:{ shellName: 'python', shellCmd: '/usr/bin/python' }- if the command is on your PATH, you may be able to simply use the command name instead of the full path
- Re-run the script, and the new shell will be available!
Running Out of Hyper
The project can also be utilized outside of Hyper, if you just want a simple terminal switcher.
git clone https://github.com/joskore/hyper-shellectornpm i hyper-shellectwherever you'd like the tool installed- Create a
.env.jsonfile in the root of the installed project with the same shellect configuration object as used by Hyper - Run
npm startfrom the root ornode /path/to/run.jsfrom anywhere - Be content!