This theme can be used in prezto.
$ cd ~/.zprezto/modules/prompt/external
$ git clone https://github.com/Ghostrick/leafia-prompt
$ ln -s ~/.zprezto/modules/prompt/external/leafia-prompt/leafia.zsh ~/.zprezto/modules/prompt/functions/prompt_leafia_setup
Set zstyle ':prezto:module:prompt' theme 'leafia'
in ~/.zpreztorc
.