Add .inputrc.

http://unix.stackexchange.com/questions/96510/search-for-a-previous-command-with-the-same-prefix-when-i-press-up-at-a-shell-pr?rq=1
Remove extra spaces before newlines.