bin/cpm

changeset 957
ea852d545173
parent 932
f87943eb16aa
child 970
498189926551
--- a/bin/cpm
+++ b/bin/cpm
@@ -2,11 +2,11 @@
 set -eu
 . ~/.lib/sh/stubexec.sh
 
-stubexec "$@"
+install_it() {
+  curl -fsSL --compressed https://git.io/cpm |
+    perl - install -g App::cpm
 
-curl -fsSL --compressed https://git.io/cpm |
-  perl - install -g App::cpm
-
-plenv rehash || :
+  plenv rehash || :
+}
 
 stubexec "$@"

mercurial