Skip to content

Instantly share code, notes, and snippets.

@momo-lab
Created June 1, 2012 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save momo-lab/2852325 to your computer and use it in GitHub Desktop.
Save momo-lab/2852325 to your computer and use it in GitHub Desktop.
コマンドを打つときにコロンを付け忘れる派の人のためのearthquake.gem用プラグイン
# -*- coding: utf-8 -*-
# earthquake.gem plugin
# execute command even if you forgot colon
Earthquake.init do
input_filter do |text|
if (command = command(":#{text}")) and confirm("execute :#{text}", :y)
input(":#{text}")
return nil
end
text
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment