Small refactoring.
Colorize committed commands in REPL.