1
1
Fork
You've already forked dotfiles
0

Switch to using GNU Stow #3

Closed
opened 2024年12月26日 08:10:55 +01:00 by nshephard · 1 comment
nshephard commented 2024年12月26日 08:10:55 +01:00 (Migrated from gitlab.com)
Copy link

Currently I have to manually link to my dotfiles, it would be far more efficient if I adopted using GNU
Stow
which handles this automatically.

Some useful examples

I need to choose which structure I'm going to go with...

.
|--/dotfiles/
 |
 |-- .bashrc
 |-- .bash_aliases
 |-- ...
 |-- .zshrc

...or...

.
|-- dotfiles/
 |
 |-- bash/
 | |-- .bashrc
 | |-- .bash_aliases
 |-- ...
 |-- zsh
 |-- .zshrc

NixOS

This shows how to go the full NixOS path and use HomeManager to generate and manage dotfiles, but since I don't yet use
NixOS on every system I use moving my configuration fully to HomeManager isn't something I want to do just yet.

Currently I have to manually link to my dotfiles, it would be far more efficient if I adopted using [GNU Stow](https://www.gnu.org/software/stow/manual/stow.html) which handles this automatically. Some useful examples - [How I manage my dotfiles using GNU Stow](https://tamerlan.dev/how-i-manage-my-dotfiles-using-gnu-stow/) - mirrors the structure within the top-level directory (i.e. `~/dotfiles/`). - [Saving dotfiles with GNU Stow and Git | James Lingford](https://www.jameslingford.com/blog/stow-dotfiles/) - closer to my current structure with individual directories for each set of configuration files. I need to choose which structure I'm going to go with... ``` bash . |--/dotfiles/ | |-- .bashrc |-- .bash_aliases |-- ... |-- .zshrc ``` ...or... ``` bash . |-- dotfiles/ | |-- bash/ | |-- .bashrc | |-- .bash_aliases |-- ... |-- zsh |-- .zshrc ``` ## NixOS This shows how to go the full NixOS path and use HomeManager to generate and manage dotfiles, but since I don't yet use NixOS on _every_ system I use moving my configuration fully to HomeManager isn't something I want to do just yet. - [Managing dotfiles with Nix](https://alex.pearwin.com/2021/07/managing-dotfiles-with-nix/)
nshephard commented 2024年12月26日 22:18:34 +01:00 (Migrated from gitlab.com)
Copy link

assigned to @nshephard

assigned to @nshephard
nshephard (Migrated from gitlab.com) closed this issue 2025年01月18日 21:22:49 +01:00
Sign in to join this conversation.
No Branch/Tag specified
master
hyprland
ronin
nshephard/3-stow
bugfix
kimura
No results found.
No labels
bash
LaTeX
python
R
ssh
zsh
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
slackline/dotfiles#3
Reference in a new issue
slackline/dotfiles
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?