Reply::Plugin::Prompt - powerlevel10k 风格提示的 reply 插件
powerlevel10k 风格提示的 reply 插件。它是一个 Reply::Plugin::FancyPrompt 的增强
你的 perl 值得一个更好的 REPL 。
参见 README.md 的截屏.
现在这个插件支持 wakatime ,可以记录你在 Reply 中使用 perl 的时间。如果你不想要这个,从 @sections 移除wakatime 。
在你的 ~/.replyrc 中使能这个插件:
[Prompt]
首先安装 nerd-font 。
安装 File::XDG > 1.00 ,然后编辑 ${XDG_CONFIG_PATH:-$HOME/.config}/reply/prompt.pl:
@sections = ( 'wakatime', 'result', 'os', 'version', 'path', 'time' ); # section order %section_colors = ( 'wakatime' => '', 'result' => 'yellow on_red', 'os' => 'black on_yellow', 'version' => 'blue on_black', 'path' => 'white on_blue', 'time' => 'black on_white', ); $sep = ''; # section separator $insert_text = ' %s '; # whitespaces which padded around section text $insert_result = '✘ %s'; $insert_version = ' %s'; $insert_os = '%s'; $insert_time = ' %s'; $time_format = '%H:%M:%S'; # time format $prompt_char = '❯ '; # prompt character $wakatime_cmd = 'wakatime-cli --write --plugin=repl-reply-wakatime --entity-type=app --entity=perl --alternate-language=perl --project=%s &';
To install Reply::Plugin::Prompt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Reply::Plugin::Prompt
CPAN shell
perl -MCPAN -e shell install Reply::Plugin::Prompt
For more information on module installation, please visit the detailed CPAN module installation guide.