commit 9396fbc1627b07e604a7eca52477da722fee32e4 (patch)
parent ea04e82c3644197e799778f92814844ea433ae1c
Author: Alex Karle <alex@karle.co>
Date: Sun, 2 Jun 2019 00:00:33 -0400
[perl] add perldb config / cpanfile for quick environment setup
I recently installed a new Perl from source and I had to go digging to
find the CPAN modules I need to do everyday work as well as my old
Perl debugger config.
This commit adds both of those files, along with some instructions on
how to set everything up.
Diffstat:
3 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/perl/.perldb b/perl/.perldb
@@ -0,0 +1,2 @@
+# Save all history to ~/.perldb.hist
+&parse_options("HistFile=$ENV{HOME}/.perldb.hist");
diff --git a/perl/README.md b/perl/README.md
@@ -0,0 +1,18 @@
+# dotfiles/perl
+
+Just a collection of files related to Perl that are useful to me.
+
+Some highlights:
+
+* `.perldb` -- the Perl debugger config
+* `cpanfile` -- a list of modules I can't live without (and install on any new
+ machine)
+
+## Installation
+
+1. Symlink .perldb to ~/.perldb
+2. Install `cpanm` and run the following:
+
+```sh
+cpanm --installdeps /path/to/dotfiles/perl
+```
diff --git a/perl/cpanfile b/perl/cpanfile
@@ -0,0 +1,4 @@
+# The below is necessary to use the readline libary that comes with
+# bash, which has necessary features like arrow key navigation,
+# history, vi keybindings... just install it already!
+requires 'Term::ReadLine::Gnu';