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

Version Control Friendly Config #721

Closed
PMaynard opened this issue Jan 18, 2016 · 3 comments
Closed

Version Control Friendly Config #721

PMaynard opened this issue Jan 18, 2016 · 3 comments

Comments

@PMaynard
Copy link

I store my configs in git. 'profanity/.local/share/profanity/accounts' adds last.activity to this file, which I don't want to sync between machines and don't care about as its nothing really related to my account configuration.

Is there a better place for this, like /tmp ?

@kennyballou
Copy link

This probably isn't a solution, but you may want to look into smudge and clean Git filters. These would essentially trick Git into thinking the file was never changed in the first place.

Add something like the follow to your dotfiles .git/config:

[filter "remove-last-activity"]
    clean = "sed -e '/last/d'"

Add the following line to your dotfiles .gitattributes file:

profanity/.local/share/profanity/accounts filter=remote-last-activity

Again, this probably isn't a solution, but may be enough of a bandaid for now.

@PMaynard
Copy link
Author

Thank you, a nice solution.

@jubalh
Copy link
Member

jubalh commented Jun 29, 2022

The config file is profrc. There you configure your behaviour for profanity.
The accounts file contains other specific things like resource and last.activity and presence.last. The file is not really meant to be shared.

@jubalh jubalh closed this as completed Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants