Giter VIP home page Giter VIP logo

Comments (4)

jbernard avatar jbernard commented on July 19, 2024

Hey Joe, so you have a directory called ~/.ncmpcpp containing some (but not all) files that you wish to manage in your dotfiles repo?

from dotfiles.

joetemp avatar joetemp commented on July 19, 2024

Yes, that's exactly right. I'd like to add the dir .ncmpcpp but NOT add every single file in it. I've tried adding the files I don't want to the ignore list to no avail. Can I nest them inside a dir called ncmpcpp within ~/dotfiles? BTW, I've already tried this and it didn't work. But I thought I'd ask. Thanks!

from dotfiles.

jbernard avatar jbernard commented on July 19, 2024

This is totally possible, but you'll need to do some manual setup as it's not available through the commandline interface. The feature you'll need is called packages. Here's how to make this work:

  1. Make backups of the files you care about in case something goes wrong and until you've verified that everything is as it should be.

  2. In your repository, create a directory (I'm assuming default prefix) called ncmpcpp.

  3. In your repository, create a file .dotfilesrc at the root that contains at least:

    [dotfiles]
    packages = [ 'ncmpcpp' ]
    
  4. From the real directory ~/.ncmpcpp, move the files you want in your repository into the directory you created, default would be `~/Dotfiles/ncmpcpp/'. So now the only files left in the real directory are the one's you don't care to keep synced and the only files in the repository directory are the ones you do care to keep synced.

  5. Because of the packages directive in the config file you created, issuing:

dotfiles -s

Should create the symlinks correctly and you should be in good shape. Let me know how it goes.

from dotfiles.

joetemp avatar joetemp commented on July 19, 2024

Worked perfectly. Thanks for your help!

from dotfiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.