Devel-REPL-Plugin-ReadLineHistory-WithoutExpansion

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "Module::Build::Tiny" : "0.017"
         }
      },
      "develop" : {
         "requires" : {
            "Test::Pod" : "1.41"
         }
      },
      "runtime" : {
         "requires" : {
            "Devel::REPL::Plugin::ReadLineHistory" : "0",
            "Moose::Role" : "0",
            "perl" : "5.008005"
         }
      },
      "test" : {
         "requires" : {
            "Test::More" : "0.88"
         }
      }
   },

META.yml  view on Meta::CPAN

name: Devel-REPL-Plugin-ReadLineHistory-WithoutExpansion
no_index:
  directory:
    - t
    - xt
    - inc
    - share
    - eg
    - examples
requires:
  Devel::REPL::Plugin::ReadLineHistory: 0
  Moose::Role: 0
  perl: 5.008005
resources:
  bugtracker: https://github.com/tsibley/Devel-REPL-Plugin-ReadLineHistory-WithoutExpansion/issues
  homepage: https://github.com/tsibley/Devel-REPL-Plugin-ReadLineHistory-WithoutExpansion
  repository: https://github.com/tsibley/Devel-REPL-Plugin-ReadLineHistory-WithoutExpansion.git
version: 0.02

README  view on Meta::CPAN

NAME
    Devel::REPL::Plugin::ReadLineHistory::WithoutExpansion - ReadLineHistory
    plugin, without expansion

DESCRIPTION
    The standard readline history plugin makes it impossible to disable
    history expansion (via "!") from a profile or rc file. This plugins
    solves that.

AUTHOR
    Thomas Sibley <tsibley@cpan.org>

cpanfile  view on Meta::CPAN

requires 'perl', '5.008005';

requires 'Devel::REPL::Plugin::ReadLineHistory';
requires 'Moose::Role';

on test => sub {
    requires 'Test::More', '0.88';
};

lib/Devel/REPL/Plugin/ReadLineHistory/WithoutExpansion.pm  view on Meta::CPAN

package Devel::REPL::Plugin::ReadLineHistory::WithoutExpansion;

use strict;
use 5.008_005;
our $VERSION = '0.02';

use Moose::Role;

with 'Devel::REPL::Plugin::ReadLineHistory';

before 'run_once' => sub {
    my $self = shift;
    $self->term->Attribs->{do_expand} = 0;
};

1;
__END__

=encoding utf-8

=head1 NAME

Devel::REPL::Plugin::ReadLineHistory::WithoutExpansion - ReadLineHistory plugin, without expansion

=head1 DESCRIPTION

The standard readline history plugin makes it impossible to disable history
expansion (via C<!>) from a profile or rc file.  This plugins solves that.

=head1 AUTHOR

Thomas Sibley E<lt>tsibley@cpan.orgE<gt>

t/basic.t  view on Meta::CPAN

use strict;
use Test::More;
use Devel::REPL::Plugin::ReadLineHistory::WithoutExpansion;

# replace with the actual test
ok 1;

done_testing;



( run in 0.290 second using v1.01-cache-2.11-cpan-4ee56698ea0 )