---
- defaults:
    link:
      create: true
      relink: true

- clean: ['~']

- shell:
  - [sh pre-install.sh, Running pre installation script]

- link:
    ~/.dotfiles: ''
    ~/.vimrc: vimrc
    ~/.vimrc.bundles: vim/bundle.vim
    ~/.vimrc.map: vim/map.vim
    ~/.zshrc: 
      force: true
      path: zshrc
    ~/.zsh: zsh
    ~/.p10k.zsh: zsh/configs/p10k.zsh
    ~/.gitconfig: gitconfig

- shell:
  - [git submodule update --init --recursive, Installing submodules]
  - command: vim -u ~/.vimrc.bundles +PluginInstall +qall
    description: Installing vim plugins

---
- defaults:
    link:
      create: true
      relink: true

- clean: ['~']

- shell:
  - [sh pre-install.sh, Running pre installation script]

- link:
    ~/.vimrc: vimrc
    ~/.vimrc.bundles: vim/bundle.vim
    ~/.vimrc.map: vim/map.vim
    ~/.zshrc: 
      force: true
      path: zshrc
    ~/.zsh: zsh
    ~/.p10k.zsh: zsh/configs/p10k.zsh
    ~/.gitconfig: gitconfig

- shell:
  - [git submodule update --init --recursive, Installing submodules]
  - command: vim -u ~/.vimrc.bundles +PluginInstall +qall
    description: Installing vim plugins

Remove dotfiles linking as it is not needed
Remove dotfiles linking as it is not needed
