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

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    = '" $text "';

Section Text

$insert_result  = '"✘ $result"';
$insert_version = '" $version"';
$insert_os      = '"$os"';
$insert_time    = '" $time"';

Time Format

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

Prompt Character

$prompt_char = '❯ ';

Configuration File

The configuration file is ~/.config/reply/prompt.pl. This is the standard configuration path of Linux. Because there is no library for perl to provide the function of platformdirs so use this path as a temporarily.

Similar Prompts

See here.