.lib/stubs/pry

Sun, 05 May 2024 20:43:54 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 05 May 2024 20:43:54 -0500
changeset 1162
e6da5f7156c2
parent 1107
c6d7ac40bd3c
permissions
-rwxr-xr-x

Fix VimEnter/vim_did_enter behavior

990
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
1 #!/bin/sh
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
2 set -eu
946
20c0492da189 Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
990
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
4 install_it() {
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
5 [ -w "$(gem env gemdir)" ] ||
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
6 opt="--user-install"
946
20c0492da189 Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7
990
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
8 gem install -q ${opt:-} \
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
9 "pry:~>0.13.1" pry-byebug pry-inline
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
10 asdf reshim ruby || :
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
11 }
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
12
992
4e3e37ce84bc Switch stubexec to self-invoke
Meredith Howard <mhoward@roomag.org>
parents: 990
diff changeset
13 . ~/.lib/sh/stubexec.sh

mercurial