I have a number of self-written scripts on my PC. I want to put these in the correct spot in my homedir according to the XDG Basedir spec. But I also want to backup these scripts in an clear and scalable manner.
The XDG Basedir spec mentions the following:
User-specific executable files may be stored in $HOME/.local/bin. Distributions should ensure this directory shows up in the UNIX $PATH environment variable, at an appropriate place.
So I would put my scripts in $HOME/.local/bin. But this directory is also populated with other script that were installed through a package manager (e.g. python pip). So backing up only my scrips isn't tivial (neither using a git repo, nor by explicitly copying them to a remote location).
I have currently put my scripts in a subfolder from $HOME/.local/bin, but $PATH doesn't look in the directories recursively, so I have to explicitly add the subfolder to my $PATH, which also seems somewhat unnecessary.
Is there a different location where I could put my scripts? Or should I handle this in a different way altogether?