module Kernel

Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2014 License: GNU GPL 3 <www.gnu.org/copyleft/gpl.html>

Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2017 License: GNU GPLv3 (or later) <www.gnu.org/copyleft/gpl.html>

Public Instance Methods

clear_screen() click to toggle source
# File lib/muflax/panes.rb, line 7
def clear_screen
  print "\e[H\e[2J"
end
clear_tmux_history() click to toggle source
# File lib/muflax/panes.rb, line 11
def clear_tmux_history
  system "tmux", "clear-history"
end
fish(command) click to toggle source
# File lib/muflax/kernel.rb, line 18
def fish command
  system "fish", "-l", "-c", command
end
hr() click to toggle source
# File lib/muflax/kernel.rb, line 7
def hr
  width, height       = HighLine::SystemExtensions.terminal_size
  linewidth           = [(width || 0) - 1, 1].max

  puts "-" * (linewidth)
end
zsh(command) click to toggle source
# File lib/muflax/kernel.rb, line 14
def zsh command
  system "zsh", "-l", "-c", command
end