Skip to content

[TIP]: Simplify your GNU Stow layout with --dotfiles #39

Description

@kushvinth

Clean Setup

One thing I noticed is that every package contains its own .config directory:

nvim/.config/nvim
ghostty/.config/ghostty
tmux/.config/tmux
...

Personally, repeating .config in every single package feels a bit tedious and adds a lot of boilerplate to the repo structure.

GNU Stow has a --dotfiles flag that lets you avoid this entirely by using a single dot-config directory. Stow automatically translates dot- back to . when creating symlinks.

For example:

dot-config/
├── nvim
├── ghostty
├── tmux
├── waybar
└── ...

gets linked to:

~/.config/nvim
~/.config/ghostty
~/.config/tmux
~/.config/waybar

I've been using this approach in my own dotfiles repo, and it keeps things much cleaner once the config collection starts growing:

https://github.com/kushvinth/dotfiles

Might be worth checking out if you ever feel like reducing some of the .config repetition throughout the repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions