-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
40 lines (34 loc) · 1.03 KB
/
justfile
File metadata and controls
40 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
DOTFILES := '~/.dotfiles'
default:
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash just
just stow --restow .
setup_dotfiles: setup_precommit
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash just
just stow --stow --adopt .
setup_precommit:
#!/usr/bin/env nix-shell
#!nix-shell -i bash
#!nix-shell -p bash pre-commit git
pre-commit autoupdate
pre-commit install
git add .pre-commit-config.yaml
update: default
#!/usr/bin/env nix-shell
#!nix-shell -i bash
#!nix-shell -p bash uutils-coreutils-noprefix
PAGER=cat EDITOR=cat ~/.bin/nixup
clean:
#!/usr/bin/env nix-shell
#!nix-shell -i zsh -p zsh just
just stow --delete .
pushd ~ > /dev/null
rm -- **/*(-@D) || echo "And that's fine. You can safely ignore that."
popd > /dev/null
stow *STOW_PACKAGES:
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash stow
pushd {{DOTFILES}}/stow > /dev/null
stow --target ~ --dir {{DOTFILES}}/stow --dotfiles {{STOW_PACKAGES}}
popd > /dev/null