diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-07-21 21:03:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 21:03:16 +0200 |
commit | 87fed0b46b4b7868f0c15a9f6fb7a4291b4bbc1f (patch) | |
tree | dc6c164fd7332848808375fc21d09dd1799b34f5 /vagrant_support | |
parent | aed295eb4dd4f78d358a46b7aff61f31e2056f67 (diff) | |
download | bugzilla-87fed0b46b4b7868f0c15a9f6fb7a4291b4bbc1f.tar.gz bugzilla-87fed0b46b4b7868f0c15a9f6fb7a4291b4bbc1f.tar.xz |
better defaults for re.pl
Diffstat (limited to 'vagrant_support')
-rw-r--r-- | vagrant_support/devtools.yml | 11 | ||||
-rw-r--r-- | vagrant_support/repl.rc | 28 |
2 files changed, 39 insertions, 0 deletions
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; + |