Sha256: dd6fc5d6710c30879cbc33a689eef4b8c3fc7649ce9658cbe7c765c0d259fff7

Contents?: true

Size: 446 Bytes

Versions: 37

Compression:

Stored size: 446 Bytes

Contents

#!/usr/bin/env ruby
# -*- encoding: utf-8 -*-
# Copyright muflax <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

37 entries across 37 versions & 1 rubygems

Version Path
muflax-0.5.1 lib/muflax/kernel.rb
muflax-0.5.0 lib/muflax/kernel.rb
muflax-0.4.2 lib/muflax/kernel.rb
muflax-0.4.1 lib/muflax/kernel.rb
muflax-0.4.0 lib/muflax/kernel.rb
muflax-0.3.23 lib/muflax/kernel.rb
muflax-0.3.22 lib/muflax/kernel.rb
muflax-0.3.21 lib/muflax/kernel.rb
muflax-0.3.20 lib/muflax/kernel.rb
muflax-0.3.19 lib/muflax/kernel.rb
muflax-0.3.18 lib/muflax/kernel.rb
muflax-0.3.17 lib/muflax/kernel.rb
muflax-0.3.16 lib/muflax/kernel.rb
muflax-0.3.14 lib/muflax/kernel.rb
muflax-0.3.13 lib/muflax/kernel.rb
muflax-0.3.12 lib/muflax/kernel.rb
muflax-0.3.11 lib/muflax/kernel.rb
muflax-0.3.10 lib/muflax/kernel.rb
muflax-0.3.9 lib/muflax/kernel.rb
muflax-0.3.8 lib/muflax/kernel.rb