すいません、自分用のメモです。ひっさびさにUbuntuをセットアップしてるのでいつも入れるパッケージをメモしまっす。
sudo aptitude install -y ruby rubygems irb libopenssl-ruby
sudo aptitude -y install mysql-client mysql-server libmysqlclient-dev
$ vim .xmodmap
Rubyに優しいキーバインディング
~/.irbrc
textmate_gedit_few_steps
HOWTO: add support for .rhtml, .html.erb, .rjs, .rxml, .builder << refers dead link in it
aptitude
sudo aptitude install -y ebview chronium-browser git-core subversion traceroute cdargs curlsudo aptitude install -y ruby rubygems irb libopenssl-ruby
sudo aptitude -y install mysql-client mysql-server libmysqlclient-dev
cdargs
need a bit of tweaks in ~/.bashrc or ~/.profileKey Binding
$ vim .xmodmap
Rubyに優しいキーバインディング
Else
dropboxSetting up dev environment for Ruby
Gem
$ cat ~/.gemrc --- :verbose: true :bulk_threshold: 1000 :sources: - http://gems.rubyforge.org/ - http://gems.github.com :benchmark: false :backtrace: false :update_sources: true gem: --no-rdoc --no-ri --no-test
Irb
[Ruby]irbとscript/consoleの超便利なTips このブログは証明できない。~/.irbrc
require 'rubygems' require 'wirble' Wirble.init Wirble.colorize require 'pp' # Easily print methods local to an object's class class Object def local_methods (methods - Object.instance_methods).sort end end # Log to STDOUT if in Rails if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER') require 'logger' RAILS_DEFAULT_LOGGER = Logger.new(STDOUT) end
Gedit
pimp gedit up as textmatetextmate_gedit_few_steps
HOWTO: add support for .rhtml, .html.erb, .rjs, .rxml, .builder << refers dead link in it
Git
http://stackoverflow.com/questions/5875275/git-commit-v-by-defaultMan
Colourise man pagehttp://crunchbang.org/forums/viewtopic.php?pid=71604
Grep options
http://blog.sanctum.geek.nz/default-grep-options/ZSH:Mac
How to make zsh run as a login shell on Mac OS X (in iTerm)?
Show working dir and Git branch on prompt