>>350
ソース3行くらい読むと分かるよ
https://github.com/pyenv/pyenv/blob/master/libexec/pyenv-init

ファイルに落としたいならこうかな?
$ pyenv init - > test.txt