repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

sy: system clean script

9924fd808317697f0217827e21cf042538e47d4a

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (3)

nushell/login.nu

Modified
1 1 use prompt.nu *
2 2 use commands.nu *
3 +use sy.nu
3 4 use bw.nu
4 5 use todo.nu
5 6 use ssh-keygen-ed.nu

nushell/scripts/sy.nu

Added
new file mode 100644
1 +# Check system status
2 +export def main [] {
3 + check-deps
5 + let git_status_notes = [ '-C' $env.NOTES status ]
6 + let git_status_dotfiles = [ '-C' $env.DOTFILES status ]
8 + # print git $git_status_notes
9 + run-external git ...$git_status_notes
10 + # print git $git_status_dotfiles
11 + run-external git ...$git_status_dotfiles
13 + macchina
16 +# Synchronize by uploading
17 +export def up [] {
18 + check-deps
20 + let git_commit_notes = [ '-C' $env.NOTES commit '--all' ]
21 + let git_push_notes = [ '-C' $env.NOTES push '-ff' ]
22 + let git_commit_dotfiles = [ '-C' $env.DOTFILES commit '--all' ]
23 + let git_push_dotfiles = [ '-C' $env.DOTFILES push '-ff' ]
25 + # print git ...$git_commit_notes
26 + try { run-external git ...$git_commit_notes }
27 + # print git $git_push_notes
28 + run-external git ...$git_push_notes
29 + # print git $git_commit_dotfiles
30 + try { run-external git ...$git_commit_dotfiles }
31 + # print git $git_push_dotfiles
32 + run-external git ...$git_push_dotfiles
35 +# Synchronise by downloading
36 +export def down [] {
37 + check-deps
39 + let git_pull_notes = [ '-C' $env.NOTES pull '-ff' ]
40 + let git_pull_dotfiles = [ '-C' $env.DOTFILES pull '-ff' ]
42 + # print git $git_pull_notes
43 + run-external git ...$git_pull_notes
44 + # print git $git_pull_dotfiles
45 + run-external git ...$git_pull_dotfiles
46 + # print topgrade
47 + run-external topgrade
50 +def all-exist [] { all { which $in | is-not-empty } }
52 +def check-deps [] {
53 + let deps = [ git topgrade macchina ]
54 + if not ($deps | all-exist) {
55 + error make {
56 + msg: $"Install all of ($deps)"
57 + }
58 + }

wezterm/bugabinga/code_fonts.csv

Modified
51 51 1,Lilex
52 52 1,Linux Libertine Mono
53 53 1,Luculent
54 -1,Luxi Mono
54 +3,Luxi Mono
55 55 1,M+ 1m
56 56 14,M+ 1mn
57 57 14,M+ 2m