Entries from 2013-01-19 to 1 day
必要. 適当にgem installすれば良いと思う https://github.com/ToQoz/ruby-anything https://github.com/ToQoz/pry-command_result ~/.pryrc に追記 require 'ruby-anything' def anything_hist(tail = 10) _anything_ command_result("hist --tail #{tail}"…
rubyのString/Symbol -> pryのcommand というのは 以前 http://toqoz.hateblo.jp/entry/2013/01/17/103458 に書いた。 pryのcommand -> rubyのブロック というにパイプを繋げたいと思ってpry-command_resultっていうのを作った。 Pryのコマンドっていうのは …