-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
60 lines (46 loc) · 1.24 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import? 'scripts/languages.just'
mod? hosts 'scripts/hosts.just'
default:
just --list
update: update-config sync-projects
update-config:
-chezmoi update
# nix flake update
cd ~/nixos-config && nix run .#build-switch
update-pkgs:
-cargo install garden-tools
sync: sync-projects sync-overleaf
sync-projects:
garden grow "*"
-garden cmd "*" pull -j4
garden cmd "*" status
[private]
sync-overleaf:
just -f projects/share/justfile sync-overleaf
backup-config:
#!/usr/bin/env sh
mackup backup --force && mackup uninstall --force
backup-pictures:
rclone sync ~/Pictures BoxUCLA:Pictures --progress
# restoring the configuration using mackup
restore-config:
#!/usr/bin/env sh
echo "Syncing applications with 'mackup'..."
mackup restore --force && mackup uninstall --force
[private]
migrate:
rclone sync GoogleDriveUCLA:library BoxUCLA:library --progress
ln -s "/Volumes/My Passport for Mac/data" ~/data
clean:
-nix-collect-garbage -d
-brew cleanup
-pixi clean cache --yes
-micromamba clean --all
[private]
disk-usage:
gdu --ignore-dirs-pattern '.*CloudStorage'
gdu / -I '.*CloudStorage'
check-version:
-nix --version
-brew --version
-micromamba --version