Module: Dots::Sanity
Instance Method Summary collapse
-
#open_textmate ⇒ Object
Open the current folder in TextMate.
-
#stop_being_insane! ⇒ Object
Restore the shell to some more sensible defaults, and familiar aliases.
Instance Method Details
#open_textmate ⇒ Object
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 |