hyper-shellect2 is a small hyper plugin that lets you configure a menu of multiple shells or SSH hosts, 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
- Run
hyper i hyper-shellect2
or manually addhyper-shellect2
to your hyper plugins. - Add the shellect config to .hyper.js:
shellect: { colorsEnabled: true, shells: [ { shellName: 'zsh', shellCmd: '/bin/zsh' }, { shellName: 'My Webhosting', shellCmd: 'ssh my.domain.com' }, { shellName: 'node', shellCmd: '/usr/local/bin/node' }, { shellName: 'python', shellCmd: '/usr/bin/python' }, ] },
- Away you go!
- Open your
.hyper.js
configuration file - Add a new object to
shellect.shells
with the shellName (a meaningful label) and the fullshellCmd
text 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!
The project can also be utilized outside of Hyper, if you just want a simple terminal switcher.
git clone https://github.com/paulomanrique/hyper-shellect2
ornpm i hyper-shellect2
wherever you'd like the tool installed- Create a
.env.json
file in the root of the installed project with the same shellect configuration object as used by Hyper - Run
npm start
from the root ornode /path/to/run.js
from anywhere - Be content!
This project was originally on this repo https://github.com/joskore/hyper-shellect, but it got deleted since.
I recovered the project and added an option to add SSH hosts. Feel free to contribute or suggest more changes.