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