Sha256: 2e3f6c39a8edf69e3d19a1197f90c554ab4a17a087fc1c349f7f6f384663cf2a

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

class Nib::Shell
  include Nib::Command
  prepend Nib::History

  SCRIPT = <<~SH.freeze
    if hash bash 2>/dev/null ; then
      bash
    elif hash ash 2>/dev/null ; then
      ash
    else
      sh
    fi
  SH

  private

  def command
    SCRIPT
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nib-1.4.0 lib/nib/shell.rb