bin/setup-cpan-faves

Sun, 02 Jan 2022 03:21:02 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 02 Jan 2022 03:21:02 -0600
changeset 963
3f9185b6a5e3
parent 956
61c91bec34c8
child 970
498189926551
permissions
-rwxr-xr-x

block some autocmds in diff mode

786
63160e727e37 lets use cpm
Meredith Howard <mhoward@roomag.org>
parents: 708
diff changeset
1 #!/bin/bash
956
61c91bec34c8 improve this first-time install
Meredith Howard <mhoward@roomag.org>
parents: 819
diff changeset
2 set -euo pipefail
249
5bba2e094584 Move helper scripts into bin with common names
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
786
63160e727e37 lets use cpm
Meredith Howard <mhoward@roomag.org>
parents: 708
diff changeset
4 dists=(
956
61c91bec34c8 improve this first-time install
Meredith Howard <mhoward@roomag.org>
parents: 819
diff changeset
5 App::cpanminus
816
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
6 App::cpm
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
7
694
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
8 Perl::Tidy
695
Meredith Howard <mhoward@roomag.org>
parents: 694
diff changeset
9 Pod::Cpandoc
308
2565964f2b50 Add perltidy
Meredith Howard <mhoward@roomag.org>
parents: 274
diff changeset
10
694
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
11 experimentals
255
9e96941c5dba add experimentals
Meredith Howard <mhoward@roomag.org>
parents: 249
diff changeset
12
694
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
13 Reply
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
14 Data::Printer
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
15 Data::Printer::Filter::JSON
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
16 Data::Printer::Filter::URI
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
17 Carp::Always
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
18 B::Keywords
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
19 Term::ReadLine::Gnu
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
20 Class::Refresh
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
21 Pry
249
5bba2e094584 Move helper scripts into bin with common names
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
22
694
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
23 Path::Tiny
7c7e47abe4e1 make this run on windows
Meredith Howard <mhoward@roomag.org>
parents: 692
diff changeset
24 Getopt::Long::Descriptive
786
63160e727e37 lets use cpm
Meredith Howard <mhoward@roomag.org>
parents: 708
diff changeset
25 )
63160e727e37 lets use cpm
Meredith Howard <mhoward@roomag.org>
parents: 708
diff changeset
26
819
58f9d9741852 actually run cpm to make sure it's not a stub
Meredith Howard <mhoward@roomag.org>
parents: 816
diff changeset
27 if ! (command -v cpm && cpm -V) &>/dev/null; then
956
61c91bec34c8 improve this first-time install
Meredith Howard <mhoward@roomag.org>
parents: 819
diff changeset
28 cpm() {
61c91bec34c8 improve this first-time install
Meredith Howard <mhoward@roomag.org>
parents: 819
diff changeset
29 curl -fsSL --compressed https://git.io/cpm | perl - $@
61c91bec34c8 improve this first-time install
Meredith Howard <mhoward@roomag.org>
parents: 819
diff changeset
30 }
816
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
31 fi
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
32
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
33 cpm install -g "${dists[@]}"
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
34
f058603b86b6 bootstrap cpm and keep cpm updated, and plenv shims
Meredith Howard <mhoward@roomag.org>
parents: 786
diff changeset
35 plenv rehash || :

mercurial