hyper-greeting

Add a nice greeting to each new session created in Hyper.

Usage no npm install needed!

<script type="module">
  import hyperGreeting from 'https://cdn.skypack.dev/hyper-greeting';
</script>

README

hyper-greeting

Add a nice greeting to each new session created in Hyper.

Configuration

Edit ~/.hyper.js file and add these options:

config.greeting

A string; the command to run to output the greeting.

config.greetingArgs

An array of strings as arguments to the config.greeting.

Examples

  • Uses the fortune command:

    module.exports = {
      config: {
        greeting: 'fortune',
      }
    };
    
  • Uses bash shell, pipes, fortune, and cowsay:

    module.exports = {
      config: {
        greeting: 'bash',
        greetingArgs: ['-c', 'fortune | cowsay'],
      }
    };
    
  • Uses a preloaded fish shell function:

    module.exports = {
      config: {
        greeting: 'fish',
        greetingArgs: ['-c', 'greeting'],
      }
    };