-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
38 lines (27 loc) · 835 Bytes
/
justfile
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
# -*- justfile -*-
set ignore-comments := true
set quiet := true
# variables
dotfiles := justfile_directory()
home := home_directory()
exclude_file := dotfiles / ".config/meta/rsync_ignore"
default:
just --list
@deploy:
rsync --dry-run --out-format="%'''-6b/%'''7l %o %B %M %n" --filter=". {{ exclude_file }}" -a "{{ dotfiles }}/" "{{ home }}/"
-just deploy_files # it's fine if this "fails" due to negative confirmation
[confirm("Are you sure you want to deploy these files? (y/N)")]
[private]
@deploy_files:
rsync --progress --filter=". {{ exclude_file }}" -a "{{ dotfiles }}/" "{{ home }}/"
@diff DIRS:
echo "diff"
@fonts:
"{{ dotfiles }}/.config/meta/fetch_fonts.sh"
@stats:
"{{ dotfiles }}/.config/meta/readme_stats.sh"
# utils
[private]
@has:
error("Missing {{ home }}")
# vim: ft=make