As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'redcarpet' | |
| require 'pygments.rb' | |
| class HTMLwithPygments < Redcarpet::Render::HTML | |
| def block_code(code, language) | |
| Pygments.highlight(code, :lexer => language.to_sym, :options => { | |
| :encoding => 'utf-8' | |
| }) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| $ rails console | |
| Loading development environment (Rails 3.0.6) | |
| ruby-1.8.7-p334 :001 > r = Rails.application.routes | |
| Gives you a handle of all the routes (config/routes.rb) | |
| #Inspect a named route: | |
| ruby-1.8.7-p334 :005 > r.recognize_path(app.destroy_user_session_path) | |
| => {:action=>"destroy", :controller=>"sessions"} |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| gempaths = Gem::default_path | |
| puts | |
| puts "Scanning paths in Gem::default_path for RubyGems with native extensions ..." | |
| puts |