.lib/stubs/direnv

Mon, 08 May 2023 02:36:32 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 08 May 2023 02:36:32 -0500
changeset 1112
0ae7864c4ad8
parent 1111
7f6a94dd56ee
child 1119
84cd2286f0bf
permissions
-rwxr-xr-x

add basic nix alternative for stubs

1111
7f6a94dd56ee add direnv stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 #!/bin/sh
7f6a94dd56ee add direnv stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 set -eu
7f6a94dd56ee add direnv stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
1112
0ae7864c4ad8 add basic nix alternative for stubs
Meredith Howard <mhoward@roomag.org>
parents: 1111
diff changeset
4 nix_ref='nixpkgs#direnv'
0ae7864c4ad8 add basic nix alternative for stubs
Meredith Howard <mhoward@roomag.org>
parents: 1111
diff changeset
5
1111
7f6a94dd56ee add direnv stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 install_it() {
7f6a94dd56ee add direnv stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 mkdir -p ~/.local/bin
7f6a94dd56ee add direnv stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 curl -fsSL https://direnv.net/install.sh |
7f6a94dd56ee add direnv stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 bin_path=~/.local/bin bash >/dev/null
7f6a94dd56ee add direnv stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 }
7f6a94dd56ee add direnv stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11
7f6a94dd56ee add direnv stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 . ~/.lib/sh/stubexec.sh

mercurial