Sha256: 754199966ebf5d8a217b99582477ad8122347dbd52984f7839bd2267fe533d9e
Contents?: true
Size: 457 Bytes
Versions: 4
Compression:
Stored size: 457 Bytes
Contents
require 'ptools' module Hitcher module TerminalUtils attr_reader :found # since integration is with docker CLI, terminal become essential part of the workflow KNOWN = ["gnome-terminal","konsole","cmd.exe","tilix","terminator"] def detect_known_terminal found = {} KNOWN.each do |t| ft = File.which(t) if not ft.nil? found[t] = ft end end found end # detect_known end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
Hitcher-0.1.3 | lib/hitcher/terminal_utils.rb |
Hitcher-0.1.2 | lib/hitcher/terminal_utils.rb |
Hitcher-0.1.1 | lib/hitcher/terminal_utils.rb |
Hitcher-0.1.0 | lib/hitcher/terminal_utils.rb |