Class: Tmuxinator::Doctor

Inherits:
Object
  • Object
show all
Defined in:
lib/tmuxinator/doctor.rb

Class Method Summary collapse

Class Method Details

.editor?Boolean



6
7
8
# File 'lib/tmuxinator/doctor.rb', line 6

def editor?
  !ENV["EDITOR"].nil? && !ENV["EDITOR"].empty?
end

.installed?Boolean



10
11
12
# File 'lib/tmuxinator/doctor.rb', line 10

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

.shell?Boolean



14
15
16
# File 'lib/tmuxinator/doctor.rb', line 14

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