Tue, 02 May 2023 17:34:25 -0500
stub reply
1106
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
1 | #!/bin/sh |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
2 | set -eu |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
3 | |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
4 | install_it() { |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
5 | mkdir -p ~/.local/bin |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
6 | cd ~/.local/bin |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
7 | curl -fsSL 'https://bina.egoist.dev/casey/just?dir=.' | sh |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
8 | cd - |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
9 | # cargo install just |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
10 | } |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
11 | |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
12 | # This can probably be removed next time you look here |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
13 | export JUST_CHOOSER="fzf --preview 'just --show {}'" |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
14 | |
902c7d44ab23
add just and fzf stubs, also install gum from binary
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
15 | . ~/.lib/sh/stubexec.sh |