Interactive single keystroke menus for the shell

View project on GitHub


Hotshell is a command-line application to efficiently recall and share commands.

Commands are inlaid in interactive single keystroke menus :


Try it on the simulated demo.

Menus are defined using a JavaScript configuration DSL :

var item = require('hotshell').item

item({desc: 'hotshell demo'}, function () {

    // command items
    item({key: 'r', desc: 'restart apache', cmd: 'sudo service apache2 restart'})
    item({key: 's', desc: 'synchronize time', cmd: 'sudo /usr/sbin/ntpdate'})

    // submenu to group log related commands
    item({key: 'l', desc: 'apache logs'}, function () {
        item({key: 'a', desc: 'access.log', cmd: 'less +F /var/log/apache2/access.log'})
        item({key: 'e', desc: 'error.log', cmd: 'less +F /var/log/apache2/error.log'})

Quick tip : Name your definition file hs.js and hs will pick it up without having to specify a filename.

What to do next ?

This page was generated by GitHub Pages using architect-theme and jekyll-architect-theme.