Sha256: d78ba51f8d16eb89d49a3e530b2e9129a6f38a36ee9d3bb5d0bff7abeb33cdb0

Contents?: true

Size: 259 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
nib-1.4.2 lib/nib/shell.rb
nib-1.4.1 lib/nib/shell.rb