[Ruby] How to type Japanese on ruby console

下午2:40

How to type Japanese on ruby console




Prepare

To check the current ruby version by rbenv :

rbenv versions
Todo

  1. First you have to install readline by homebrew :
brew install readline
  1. Reinstall Ruby Version, assume your current version is 2.3.1
CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=$(brew --prefix readline)" rbenv install 2.3.1
  1. Now, you can go to irb and type Japanese :)




Reference

You Might Also Like

0 意見