how to use GNU stow

I've tried to stow dot files by following online blog/form, and it worked now, I tried to manage my $HOME/bin directory with stow, but it didn't

$HOME/.dotfiles directory structure

/home/USER/.dotfiles/
|-- bash
|   |-- .bash_aliases
|   |-- .bash_logout
|   `-- .bashrc
|-- .git
|   |-- branches
|   |-- COMMIT_EDITMSG
|   |-- config
|   |-- description
|   |-- HEAD
|   |-- hooks
|   |-- index
|   |-- info
|   |-- logs
|   |-- objects
|   `-- refs
|-- git
|   `-- .gitconfig
|-- .gitignore
|-- install.sh
|-- Makefile
|-- .stow-local-ignore
|-- vim
|   `-- .vimrc
`-- zsh

$HOME/bin/src directory structure

/home/USER/bin/
|-- src
|   |-- backup
|   |   |-- backup
|   |-- clone
|   |   `-- clone
|   |-- epub2html
|   |   `-- epub2html
|   |-- gnome-nightlight
|   |   `-- nightlight.sh
|   |-- list
|   |   `-- list
|   |-- new
|   |-- pomorodo
|   |   |-- notification.wav
|   |   |-- old_pomo
|   |   |-- pomorodo
|   |   `-- test
|   |-- revoke_exec
|   |   `-- revoke_exec
|   |-- rm_exec
|   |   |-- rm_exec
|   |   `-- tmp
|   |-- install

Where is my mistake and thanks in advance.

10 points · 2 comments · view on lemmy.world

2 Comments

Ephera@lemmy.ml · 2 pts · 2y (1 reply)

Normally, your dotfiles/stow folder should mirror the structure in your home-directory.

I found this explanation helpful: https://share.tube/w/2d2409df-ab66-471e-8021-8178baca06d4

The guy does use a somewhat opinionated stow setup. It doesn't have to be this way. But I do think, it's a good setup either way.

1_4M_N008@programming.dev · 2 pts · 2y

Thanks, very informative

My problem was running stow --simulate -v 2, so output will be like linking all dir and files in package_name to target which was weird .stow-local-ignore