Sha256: 55773755bc8f70fec48df689bab48f8d6a6daed25f621a7ad42471f695154d46

Contents?: true

Size: 452 Bytes

Versions: 3

Compression:

Stored size: 452 Bytes

Contents

#!/usr/bin/env ruby
# -*- encoding: utf-8 -*-
# Copyright Steffie Dorn <mail@muflax.com>, 2014
# License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html>

module Kernel
  def hr
    width, height	= HighLine::SystemExtensions.terminal_size
    linewidth    	= [(width || 0) - 1, 1].max

    puts "-" * (linewidth)
  end

  def zsh command
    system "zsh", "-l", "-c", command
  end

  def fish command
    system "fish", "-l", "-c", command
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
muflax-0.5.5 lib/muflax/kernel.rb
muflax-0.5.3 lib/muflax/kernel.rb
muflax-0.5.2 lib/muflax/kernel.rb