bin/setup-cpan-faves

Sun, 09 Jan 2022 15:23:05 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 09 Jan 2022 15:23:05 -0500
changeset 969
28111ba4e573
parent 956
61c91bec34c8
child 970
498189926551
permissions
-rwxr-xr-x

move to util lib

#!/bin/bash
set -euo pipefail

dists=(
  App::cpanminus
  App::cpm

  Perl::Tidy
  Pod::Cpandoc

  experimentals

  Reply
  Data::Printer
  Data::Printer::Filter::JSON
  Data::Printer::Filter::URI
  Carp::Always
  B::Keywords
  Term::ReadLine::Gnu
  Class::Refresh
  Pry

  Path::Tiny
  Getopt::Long::Descriptive
)

if ! (command -v cpm && cpm -V) &>/dev/null; then
  cpm() {
    curl -fsSL --compressed https://git.io/cpm | perl - $@
  }
fi

cpm install -g "${dists[@]}"

plenv rehash || :

mercurial