---
- include: 'tools/dotbot-defaults.yaml'
- clean:
    ~/:
    ~/.config:
      recursive: true
    ~/.local:
      recursive: true
    ~/.ssh:
      recursive: true
- create:
    ~/.cache:
    ~/.cache/git:
    ~/.config:
    ~/.local:
    ~/.local/bin:
    ~/.local/run:
    ~/.local/share:
    ~/.local/state:
    ~/.ssh:
      mode: 0700
    ~/.ssh/local.d:
      mode: 0700
    ~/Code:
- link:
    ~/:
      force: true
      glob: true
      path: base/*
      prefix: '.'
    ~/.config/:
      glob: true
      relink: true
      path: config/*
      exclude: [config/nvm]
    ~/.config/nvm/default-packages:
      create: true
      relink: true
      path: config/nvm/default-packages
    ~/.local/bin:
      glob: true
      path: local/bin/*
    ~/.local/man:
      glob: true
      path: local/man/**
    ~/.local/share:
      glob: true
      path: local/share/*
    ~/.ssh/:
      glob: true
      mode: 0600
      path: ssh/*
- shell:
    - git submodule update --init --recursive --force
    - bash local/bin/dfm install all
- pipx:
    file: tools/requirements-pipx.txt
    stdout: false
    stderr: true
