commit - 22e576ef7999e3e2f19f2e550ec29003e5c7c018
commit + d14c9a0db672cd5c36115dc99313cb011929dbb4
blob - ea7c3a39956379384783cd91d73f7f725819480b
blob + f9f473e401e40749c33df98ed8639622a8105461
--- modules/mixins/dotfiles/bin/backup
+++ modules/mixins/dotfiles/bin/backup
def self.git_remote(dir, action, verb)
log("#{verb.capitalize} changes from #{dir}")
r = git(dir, action, verbose: false)
- case r.exitcode
- when 0
+ if r.success?
log("Done #{verb}ing #{dir}")
- when 128
- log("No #{verb} destination for #{dir} (skipped)")
+ true
else
record_failure("#{verb.capitalize} failed for #{dir} (exit #{r.exitcode}): #{r.err.strip}")
+ false
end
end
def self.sync_repo(verbose:, push:, fetch:, name:, dir:)
log("git/#{name}")
- fetch_changes(dir) if fetch
r = git(dir, "add", "-A", verbose: verbose)
return unless check("Failed to stage changes in #{dir}", r)
commit_changes(dir, verbose: verbose)
end
+ return unless committed
+ return if fetch && !fetch_changes(dir)
+
push_changes(dir) if push && committed
end
blob - bc596b33875054a4b88f8c2f7099d880402a2419
blob + c09e667e0ca75bbf7cffedd5aad5b7e073738473
--- modules/mixins/dotfiles/config/shell/rc/aliased-short-names
+++ modules/mixins/dotfiles/config/shell/rc/aliased-short-names
alias remn='rem -n'
alias remc='rem -ncm'
+
+alias emn='em ~/notes'
blob - 3658087f8f574f50a501ea64477a2b595fa13f27
blob + 1f0ce7539d6a776ac7179d28cf6f7c0f0e86e705
--- modules/mixins/dotfiles/config/zsh/rc/zzz-histdb-fts
+++ modules/mixins/dotfiles/config/zsh/rc/zzz-histdb-fts
JOIN places ON history.place_id = places.id
${where}
ORDER BY history.start_time DESC
- LIMIT 5000
+ LIMIT 25000
"
}