Personally I put scripts in ~/.local/bin/scripts/
instead of just ~/.local/bin/
because I like to keep them separate from other binaries. To note: even though ~/.local/bin/
is in PATH, it's subfolders are not, so if you do that you need to add the scripts
subfolder to PATH if you want to run the scripts directly.
Well actually my scripts are in mydotfilesrepo/home/.local/bin/scripts
, and I use GNU Stow to symlink mydotfilesrepo/home
to /home/myuser/
(same for mydotfilesrepo/etc/
and mydotfilesrepo/usr/
which are symlinked to /etc
and /usr
), but it's the same result. Stow is pretty cool for centralizing your configs and scripts in one repo !
I've never seen ~/bin
before so I can't comment on whether it's a good idea.