Skip to content

Instantly share code, notes, and snippets.

@morygonzalez
Forked from ryumu/screen_name_prompt.rb
Created April 24, 2012 09:27
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 morygonzalez/2478240 to your computer and use it in GitHub Desktop.
Save morygonzalez/2478240 to your computer and use it in GitHub Desktop.
Earthquake.gemのプロンプトにユーザー名を出すよ!プラグイン(色つき)
# coding: UTF-8
Earthquake.init do
once do
user = twitter.info['screen_name']
config[:prompt] = user.c(color_of(user)) + config[:prompt]
end
end
@morygonzalez
Copy link
Author

プロンプトに名前が出るやつ、色つきにしました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment