.lib/stubs/timetrap

Wed, 25 Sep 2024 15:03:13 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 25 Sep 2024 15:03:13 -0500
changeset 1179
b0a0ba3240b5
parent 1137
f767f8cd6a9f
permissions
-rwxr-xr-x

No LSP autostart when read-only

I think nvim actually threw out 'view' argc detection, I just use -R and alias
view to it.

1137
f767f8cd6a9f add asciidoctor and timetrap stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 #!/bin/sh
f767f8cd6a9f add asciidoctor and timetrap stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 set -eu
f767f8cd6a9f add asciidoctor and timetrap stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
f767f8cd6a9f add asciidoctor and timetrap stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 install_it() {
f767f8cd6a9f add asciidoctor and timetrap stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 [ -w "$(gem env gemdir)" ] ||
f767f8cd6a9f add asciidoctor and timetrap stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 opt="--user-install"
f767f8cd6a9f add asciidoctor and timetrap stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7
f767f8cd6a9f add asciidoctor and timetrap stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 gem install -q ${opt:-} timetrap
f767f8cd6a9f add asciidoctor and timetrap stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 asdf reshim ruby || :
f767f8cd6a9f add asciidoctor and timetrap stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 }
f767f8cd6a9f add asciidoctor and timetrap stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11
f767f8cd6a9f add asciidoctor and timetrap stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 . ~/.lib/sh/stubexec.sh

mercurial