Module: Dots::Sanity

Includes:
Thor::Actions
Included in:
Command
Defined in:
lib/ruby/dots/sanity.rb

Instance Method Summary collapse

Instance Method Details

#open_textmateObject

Open the current folder in TextMate.



17
18
19
20
21
22
23
24
# File 'lib/ruby/dots/sanity.rb', line 17

def open_textmate
  if textmate_installed?
    system 'mate .'
  else
    say "Please install TextMate to open this folder sensibly."
    exit 1
  end
end

#stop_being_insane!Object

Restore the shell to some more sensible defaults, and familiar aliases.



12
13
14
# File 'lib/ruby/dots/sanity.rb', line 12

def stop_being_insane!
  restore_to_sensible_defaults and say_farewell
end