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/scripts/sy.nu
Addednew file mode 100644 5 + let git_status_notes = [
'-C' $env.NOTES status ]
6 + let git_status_dotfiles = [
'-C' $env.DOTFILES status ]
9 + run-external git ...
$git_status_notes 11 + run-external git ...
$git_status_dotfiles 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' ]
26 + try { run-external git ...
$git_commit_notes }
28 + run-external git ...
$git_push_notes 30 + try { run-external git ...
$git_commit_dotfiles }
32 + run-external git ...
$git_push_dotfiles 39 + let git_pull_notes = [
'-C' $env.NOTES pull
'-ff' ]
40 + let git_pull_dotfiles = [
'-C' $env.DOTFILES pull
'-ff' ]
43 + run-external git ...
$git_pull_notes 45 + run-external git ...
$git_pull_dotfiles 47 + run-external topgrade
50 +def all-exist [] { all { which
$in | is-not-empty } }
53 + let deps = [ git topgrade macchina ]
54 + if not (
$deps | all-exist) {
56 + msg: $
"Install all of ($deps)" wezterm/bugabinga/code_fonts.csv
Modified 52 52 1,
Linux Libertine Mono