Code Monkey home page Code Monkey logo

Comments (5)

gpakosz avatar gpakosz commented on June 14, 2024

Hello @ncihnegn,

I don't believe it's an issue.

In my repository the file is named .tmux.conf.local while it should be name ~/.config/tmux/tmux.conf.local without a leading dot when loaded from $XDG_CONFIG_HOME

from .tmux.

ncihnegn avatar ncihnegn commented on June 14, 2024

Ah, the naming can be confusing.

But it is still a problem. Adding ~/.config/tmux/tmux.conf and ~/.config/tmux/tmux.conf.local are still modifications to the ~/.config/tmux/ submodule.

I don't understand why we need to make a link for tmux.conf. We should be able to use it as is.

It will be nice to use a layout like ~/.tmux/tmux.conf plus ~/.tmux.conf.local. The vanilla configuration and the user customization should be in different directories so that they can be tracked separately.

from .tmux.

gpakosz avatar gpakosz commented on June 14, 2024

The vanilla configuration and the user customization should be in different directories so that they can be tracked separately

Sure.
So you can have:

~
├── .config (your own git repository)
│   ├ .tmux (this repository as a submodule)
│   │ ├ .tmux.conf (upstream)
│   │ └ .tmux.conf.local (upstream)
│   └ tmux
│     ├ tmux.conf -> ../.tmux/.tmux.conf (symlink)
│     └ tmux.conf.local (your own copy with your own customizations)
├── ...
└── ...

from .tmux.

ncihnegn avatar ncihnegn commented on June 14, 2024

Yes, that's what I am doing. But the unnecessary link is bugging me.

from .tmux.

gpakosz avatar gpakosz commented on June 14, 2024

the unnecessary link is bugging me

The following won't work:

~
├── .config (your own git repository)
│   └ tmux (this repository as a submodule)
│     ├ .tmux.conf
│     └ .tmux.conf.local.example
├── ...
└── ...

Renaming .tmux.conf.local to .tmux.conf.local.example won't help much when tmux is looking for a file named ~/.config/tmux/tmux.conf and not ~/.config/tmux/.tmux.conf.

It's too late to rename .tmux.conf to tmux.conf in this repository as it would break many users who pull the repository.

from .tmux.

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.