Override just command

If a `.ignored/justfile` exists, e.g. for open-source projects I can't
commit a `justfile` to, use it by default.
This commit is contained in:
Oliver Davies 2024-05-09 23:40:30 +01:00
parent 634ed23325
commit 5d3f7ef58f

View file

@ -58,6 +58,14 @@
t "''${repo_path}"
}
just() {
if [[ -f .ignored/justfile ]]; then
${pkgs.just}/bin/just --justfile .ignored/justfile "''${@}"
else
${pkgs.just}/bin/just "''${@}"
fi
}
ttyper() {
command ${pkgs.ttyper}/bin/ttyper --language english1000 --words 50 "''${@}"
}