Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add exclusion #331

Open
InvisibleRasta opened this issue Jan 20, 2023 · 1 comment
Open

How to add exclusion #331

InvisibleRasta opened this issue Jan 20, 2023 · 1 comment
Labels

Comments

@InvisibleRasta
Copy link

InvisibleRasta commented Jan 20, 2023

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/*

@anishathalye
Copy link
Owner

anishathalye commented Jan 20, 2023

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants