subcommandshell

Spawn a shell to execute subcommands (of, for example, git) without repeating the main command

Usage no npm install needed!

<script type="module">
  import subcommandshell from 'https://cdn.skypack.dev/subcommandshell';
</script>

README

subcommandshell

Installation

  1. install Node.js
  2. run npm install -g subcommandshell

Usage

  1. run subcommandshell <command> <shellPath> <prefix> <default> <sigintSuffix> <historyFilePath> (all arguments, except the command, are optional), for example: subcommandshell git /bin/bash 'git > ' status '^C' ~/.gitsh