Reply-Plugin-Prompt

pre-commit.ci status

github/downloads github/downloads/latest github/issues github/issues-closed github/issues-pr github/issues-pr-closed github/discussions github/milestones github/forks github/stars github/watchers github/contributors github/commit-activity github/last-commit github/release-date

github/license github/languages github/languages/top github/directory-file-count github/code-size github/repo-size github/v

cpan/v

Reply plugin for powerlevel10k style prompt. It is an enhancement of Reply::Plugin::FancyPrompt.

Your perl deserves a beautiful REPL.

screenshot

Install

cpan Reply::Plugin::Prompt

Enable this plugin in your ~/.replyrc:

[Prompt]

Build

./Makefile.PL
cp MANIFEST.SKIP.bak MANIFEST.SKIP
make manifest
make dist

Configure

Section Order

@sections = ( 'result', 'os', 'version', 'path', 'time' );

Section Colors

%section_colors = (
    'result'  => 'yellow on_red',
    'os'      => 'black on_yellow',
    'version' => 'blue on_black',
    'path'    => 'white on_blue',
    'time'    => 'black on_white',
);

Section Separator

$sep = '';

Whitespaces Which Padded Around Section Text

$insert_text = ' %s ';

Section Text

$insert_result  = '✘ %s';
$insert_version = ' %s';
$insert_os      = '%s';
$insert_time    = ' %s';

Time Format

$time_format = '%H:%M:%S';

Prompt Character

$prompt_char = '❯ ';

Configuration File

The configuration file path respects XDG, which is ${XDG_CONFIG_PATH:-$HOME/.config}/reply/prompt.pl.

Similar Prompts

See here.