Sha256: ca4048a4e9965fc393770aaffa6d4dc54dab39be70b64f4f85f63701f1cc2095

Contents?: true

Size: 459 Bytes

Versions: 3

Compression:

Stored size: 459 Bytes

Contents

#!/usr/bin/env ruby
# -*- encoding: utf-8 -*-
# Copyright Freya Dorn <freya.siv.dorn@gmail.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.7.0 lib/muflax/kernel.rb
muflax-0.6.1 lib/muflax/kernel.rb
muflax-0.6.0 lib/muflax/kernel.rb