tmuxinator/tmuxinator

View on GitHub
lib/tmuxinator/doctor.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Tmuxinator
  class Doctor
    class << self
      def editor?
        !ENV["EDITOR"].nil? && !ENV["EDITOR"].empty?
      end

      def installed?
        Kernel.system("type tmux > /dev/null")
      end

      def shell?
        !ENV["SHELL"].nil? && !ENV["SHELL"].empty?
      end
    end
  end
end