dotbot icon indicating copy to clipboard operation
dotbot copied to clipboard

How to add exclusion

Open InvisibleRasta opened this issue 2 years ago • 1 comments

Hello, I am trying to figure out how to exclude the contents of mpris-cache. How would i add the exclusion in the config?

# install.conf.yaml
- defaults:
    link:
      relink: true

- clean: ['~']

- link:
    ~/.vimrc: vimrc
     ~/.zshrc: zshrc
    ~/.nanorc: nanorc
    ~/.config/awesome: config/awesome
    ~/.local/bin: local/bin
    ~/.config/nvim: config/nvim
    ~/.config/ranger: config/ranger
    ~/.config/rofi: config/rofi
    ~/.local/share/icons: local/share/icons
    ~/.themes: themes
    ~/.local/share/gnome-shell/extensions: local/share/gnome-shell/extensions

I want to exclude the contents of mpris-cache

.dotfiles/local/share/gnome-shell/extensions/widgets@aylur/media/mpris-cache/*

InvisibleRasta avatar Jan 20 '23 12:01 InvisibleRasta

This configuration symlinks ~/.local/share/gnome-shell/extensions to point to {your dotfiles directory}/local/share/gnome-shell/extensions. So if some program is putting its cache contents in that directory, you probably want to gitignore it. You can accomplish this by putting a .gitignore file somewhere in the folder hierarchy and giving a path to that file. E.g., put a .gitignore file in the root of your dotfiles repository (and check that file in to Git), with the following contents:

local/share/gnome-shell/extensions/widgets@aylur/media/mpris-cache/

You can also put the .gitignore file lower down, e.g. in .dotfiles/local/share/gnome-shell/extensions/.gitignore, with the following contents:

widgets@aylur/media/mpris-cache/

anishathalye avatar Jan 20 '23 22:01 anishathalye