2022-02-08 19:53:55 +01:00
|
|
|
lsps := "
|
|
|
|
bash-language-server
|
|
|
|
lua-language-server
|
|
|
|
rust-analyzer
|
|
|
|
taplo-lsp
|
|
|
|
vscode-langservers-extracted
|
|
|
|
yaml-language-server
|
|
|
|
"
|
|
|
|
|
|
|
|
install-scripts target=(`echo $HOME` + "/.local/bin"):
|
|
|
|
opam install --yes clap
|
|
|
|
cd scripts/playtwitch && dune build
|
2022-02-15 21:53:09 +01:00
|
|
|
chmod -R +w scripts/playtwitch
|
2022-02-08 19:53:55 +01:00
|
|
|
cp scripts/playtwitch/_build/default/playtwitch.exe {{target}}/playtwitch
|
|
|
|
|
2022-02-08 18:49:25 +01:00
|
|
|
ln -sf \
|
2022-02-15 21:53:09 +01:00
|
|
|
`pwd`/scripts/{start-joshuto,withjava,randomwallpaper} \
|
2022-02-08 18:49:25 +01:00
|
|
|
{{target}}
|
2022-02-08 19:53:55 +01:00
|
|
|
|
|
|
|
install-lsps-paru:
|
|
|
|
#!/bin/sh
|
|
|
|
paru -S --needed --noconfirm {{replace(lsps, "\n", " ")}}
|
|
|
|
|
|
|
|
if which opam &> /dev/null; then
|
|
|
|
opam install --yes \
|
|
|
|
ocaml-lsp-server \
|
|
|
|
ocamlformat
|
|
|
|
fi
|
2022-02-08 19:57:27 +01:00
|
|
|
|
|
|
|
install-prompt:
|
|
|
|
RUSTFLAGS="-C target-cpu=native" cargo build --release \
|
|
|
|
--manifest-path prompt/Cargo.toml
|
|
|
|
strip prompt/target/release/prompt
|
|
|
|
cp prompt/target/release/prompt ~/.local/bin
|