Solved: ~/bin vs. ~/.local/bin for user bash scripts?
ShittyBeatlesFCPres @ ShittyBeatlesFCPres @lemmy.world Posts 16Comments 2,266Joined 2 yr. ago
ShittyBeatlesFCPres @ ShittyBeatlesFCPres @lemmy.world
Posts
16
Comments
2,266
Joined
2 yr. ago
Personally, I put a ~/.get-going or whatever you want to call it and put all my scripts in there. Name them with numbers first like “10-first.sh” “20-second.sh” and then just put a line in .bashrc or .zshrc or whatever you like. Aliases and any critical stuff last. Then one line in your rc file can include them all.
I made some bash scripts for distro-hopping that are now [undiscloded] years old so I can basically backup a few folders — the second being ~/bin where I put AppImages and stuff and sometimes ~/Development (I don’t always need the dev one because backups of those exist as repos) folder if I need to reinstall. A lot of people backup their whole home directory. But I prefer my method and that’s why we use Linux. I don’t want my settings for every app coming with me when I go on a new journey. Choose your own adventure.