bin/pry

Fri, 06 May 2022 06:33:41 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 06 May 2022 06:33:41 -0400
changeset 990
a4f19f325dea
parent 946
20c0492da189
child 992
4e3e37ce84bc
permissions
-rwxr-xr-x

Switch to stubexec, handle user_dir install

#!/bin/sh
set -eu
. ~/.lib/sh/stubexec.sh

install_it() {
  [ -w "$(gem env gemdir)" ] ||
    opt="--user-install"

  gem install -q ${opt:-} \
    "pry:~>0.13.1" pry-byebug pry-inline
  asdf reshim ruby || :
}

stubexec "$@"

mercurial