add install-prompt to justfile

This commit is contained in:
LordMZTE 2022-02-08 19:57:27 +01:00
parent c70546c767
commit c4030a1d09
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 6 additions and 7 deletions

View file

@ -30,3 +30,9 @@ install-lsps-paru:
ocaml-lsp-server \
ocamlformat
fi
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

View file

@ -1,7 +0,0 @@
#!/bin/sh
# builds and installs the prompt to ~/.local/bin
set -e
RUSTFLAGS="-C target-cpu=native" cargo build --release
strip target/release/prompt
cp target/release/prompt ~/.local/bin