13 Jul 2010

Ubuntuインストール後にいつもインストールするパッケージ

すいません、自分用のメモです。ひっさびさにUbuntuをセットアップしてるのでいつも入れるパッケージをメモしまっす。


aptitude

sudo aptitude install -y ebview chronium-browser git-core subversion traceroute cdargs curl

sudo 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 ~/.profile



Key Binding


$ vim .xmodmap
Rubyに優しいキーバインディング


Else

dropbox



Setting 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 textmate
textmate_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-default

Man

Colourise man page
http://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