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