From 87fed0b46b4b7868f0c15a9f6fb7a4291b4bbc1f Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Fri, 21 Jul 2017 15:03:16 -0400 Subject: better defaults for re.pl --- vagrant_support/devtools.yml | 11 +++++++++++ vagrant_support/repl.rc | 28 ++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 vagrant_support/repl.rc (limited to 'vagrant_support') diff --git a/vagrant_support/devtools.yml b/vagrant_support/devtools.yml index f9fb3e94f..fa554ce3c 100644 --- a/vagrant_support/devtools.yml +++ b/vagrant_support/devtools.yml @@ -9,7 +9,18 @@ - cpanm: name=File::Next notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm - cpanm: name=Sys::SigAction notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm - cpanm: name=Lexical::Persistence notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm +- cpanm: name=Data::Printer notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm +- cpanm: name=Devel::REPL::Plugin::ReadLineHistory::WithoutExpansion notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm + +- name: fix ownership of repl stuff + file: path=/home/vagrant/perl owner=vagrant group=vagrant recurse=true - name: copy re.pl copy: src=re.pl dest=/usr/local/bin/re.pl mode=0755 +- name: mkdir .re.pl + file: path=/home/vagrant/.re.pl state=directory owner=vagrant group=vagrant mode=0775 + +- name: copy .re.pl/repl.rc + copy: src=repl.rc dest=/home/vagrant/.re.pl/repl.rc mode=0644 + diff --git a/vagrant_support/repl.rc b/vagrant_support/repl.rc new file mode 100644 index 000000000..89ad089a5 --- /dev/null +++ b/vagrant_support/repl.rc @@ -0,0 +1,28 @@ +#!perl +# vim: set ft=perl: +use Bugzilla; +use Bugzilla::Constants; +Bugzilla->usage_mode(USAGE_MODE_CMDLINE); +Bugzilla->extensions; +use DDP return_value => 'void', colored => 1; + +my @plugins = qw( + Colors + Timing + Completion + CompletionDriver::INC + CompletionDriver::LexEnv + CompletionDriver::Keywords + CompletionDriver::Methods + History + LexEnv + DDS + Packages + Commands + MultiLine::PPI + ReadLineHistory::WithoutExpansion + Peek +); + +$_REPL->load_plugin($_) for @plugins; + -- cgit v1.2.3-24-g4f1b