- defaults:
    link:
      # Create new symlinks when they do not exist
      create: true
      # Relink old symlinks when they are changed
      relink: true

# Directories to be checked for broken symlinks
- clean: ['~', '~/.config']

# <destination>: <source (relative to root dotfiles directory)>
- link:
    ~/.bashrc:
    ~/.bash_aliases:
    ~/.bash_profile:
    ~/.bash_logout:
    ~/.config/user-dirs.dirs: 'config/user-dirs.dirs'
    ~/.config/i3: 'config/i3'
    ~/.config/termite: 'config/termite'
    ~/.config/twmn: 'config/twmn'
    ~/.config/polybar: 'config/polybar'
    ~/.config/compton.conf: 'config/compton.conf'
    ~/.config/contrail.toml: 'config/contrail.toml'
    ~/.emacs:
    ~/.emacs.d:
    ~/.gitignore_global:
    ~/bin/scripts: 'scripts'
    ~/bin/bash-powerline.sh: 'bash-powerline/bash-powerline.sh'
    ~/.xprofile:
    ~/.Xresources:
    ~/.xinitrc:
    ~/.zshrc:

- shell:
  - [git submodule update --init --recursive, Installing submodules]
  - [git config --global core.excludesfile ~/.gitignore_global, Updating global gitignore]

- defaults:
    link:
      # Create new symlinks when they do not exist
      create: true
      # Relink old symlinks when they are changed
      relink: true

# Directories to be checked for broken symlinks
- clean: ['~', '~/.config', '~/bin']

# <destination>: <source (relative to root dotfiles directory)>
- link:
    ~/.bashrc:
    ~/.bash_aliases:
    ~/.bash_profile:
    ~/.bash_logout:
    ~/.config/user-dirs.dirs: 'config/user-dirs.dirs'
    ~/.config/i3: 'config/i3'
    ~/.config/termite: 'config/termite'
    ~/.config/twmn: 'config/twmn'
    ~/.config/polybar: 'config/polybar'
    ~/.config/compton.conf: 'config/compton.conf'
    ~/.config/contrail.toml: 'config/contrail.toml'
    ~/.emacs:
    ~/.emacs.d:
    ~/.gitignore_global:
    ~/bin/scripts: 'scripts'
    ~/bin/bash-powerline.sh: 'bash-powerline/bash-powerline.sh'
    ~/.xprofile:
    ~/.Xresources:
    ~/.xinitrc:
    ~/.zshrc:

- shell:
  - [git submodule update --init --recursive, Installing submodules]
  - [git config --global core.excludesfile ~/.gitignore_global, Updating global gitignore]

Clean broken symlinks from bin too
Clean broken symlinks from bin too
