···1515# (and maybe fish completions)
1616: "${YADM_BOOTSTRAP_FULL:=0}"
17171818-# TODO: all these should be doable with nix-darwin instead
1918function setup_macos() {
2019 if command -q darwin-rebuild &>/dev/null; then
2120 darwin-rebuild switch
+7
.config/yadm/hooks/pre_commit
···8989 exit_with_error "Submodule paths in $HOME/.gitmodules should be relative!"
9090fi
91919292+# TODO: needs a `shared_secret` to work properly. Also a post-pull hook to
9393+# import the preset again would be handy, see also
9494+# https://community.folivora.ai/t/syncing-the-config-in-git/34840/4?u=ianchamberlain
9595+# osascript -e 'tell application "BetterTouchTool"
9696+# export_preset outputPath "~/.config/btt/Default.bttpreset" includeSettings true
9797+# end tell'
9898+9299if [ $WARNINGS -gt 0 ]; then
93100 read -r -p "Some pre-commit checks had warnings. Press enter to continue or Ctrl-C to cancel."
94101fi