JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q38281F
  • License MIT

Allows hyper users to define alternate shell configurations and switch based on key mappings

Package Exports

  • hyper-switch-shell

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hyper-switch-shell) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

hyper-switch-shell

Allows hyper users to define alternate shell configurations and switch based on key mappings

Install

  1. Open .hyper.js
  2. Add to plugins:
{
  ...
  plugins: ['hyper-switch-shell'],
  ...
}

Usage

  • Open .hyper.js
  • Add a shells key, with value an object of shell configurations
    • Each shell must have shell, and shellArgs key values.
{
  config: {
    ...
    shells: {
      default: {
        shell: 'C:/Program Files/Git/bin/bash.exe',
        shellArgs: ['--login'],
      },
      powershell: {
        shell: 'C:/Windows/System32/WindowsPowershell/v1.0/powershell.exe',
        shellArgs: ['-NoLogo']
      }
    }
  },
  ...
}
  • Add key mappings - these mappings will update the config
{
  keymaps: {
    "shell:load:default": "ctrl+shift+h",
    "shell:load:powershell": "ctrl+shift+g"
  }
}
  • Any given key is supported, provided the keymap shell:load:{key} matches the config key
  • Each command simply reloads the config - open a new tab to use the new shell.

Tests

npm test - runs a limited number of tests found in test/.