aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/justfile
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-03-02 19:09:29 -0600
committerToby Vincent <tobyv13@gmail.com>2022-03-02 19:09:29 -0600
commit6a36592700b75e3658584db672f09ee33b2ba840 (patch)
treedd908e0eadd96e168f2d723e4d778ee3e037b81b /justfile
parent10c8ca3c945a1bf7adffbb1dbac0789be85387e0 (diff)
feat: woof
Diffstat (limited to 'justfile')
-rw-r--r--justfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..fe09d19
--- /dev/null
+++ b/justfile
@@ -0,0 +1,22 @@
+#!/usr/bin/env just --justfile
+
+dotfiles_path := justfile_directory()
+comp_dir_zsh := "$HOME/.local/share/zsh/site-functions"
+comp_dir_bash := "$HOME/.local/share/bash-completion/completions"
+
+default:
+ @just --choose
+
+# install completion scripts for just
+completion_just:
+ just --completions zsh > {{comp_dir_zsh}}/_just
+ just --completions bash > {{comp_dir_bash}}/just
+
+install_rust:
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
+
+completion_rust:
+ rustup completions bash > {{comp_dir_bash}}/rustup;
+ rustup completions zsh > {{comp_dir_zsh}}/_rustup;
+ rustup completions bash cargo > {{comp_dir_bash}}/cargo;
+ rustup completions zsh cargo > {{comp_dir_zsh}}/_cargo \ No newline at end of file