this post was submitted on 12 Jan 2024
95 points (95.2% liked)
Linux
48371 readers
1555 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Create a dotfiles repo in git. Gives you a way to track changes to your .bashrc or .zshrc
With extra bonus: write an installer script that symlinks the files to the correct place. Use Ansible, plain old Bash, or Python depending on your preference.
Or GNU stow.
https://github.com/thoughtbot/rcm
rcm will do symlinking for you and is pretty awesome. Been using it for this purpose for years
I'm waffling between that or just setting up a bare git repo. Am prepping a VM or two to explore the pros/cons of each approach and to dive into the implications.
It's funny - this project idea seems to free bubbling up everywhere this past week. I'm sure I'm seeing the consequences of search algorithms, but on Lemmy, it's nice to see what is a definite and pleasant coincidence.
When in doubt always do a
git init .
and a git add, git commit every once in a while. You'll never regret it.That is the next item on my to-do list. I've already installed my own gitea container to run at home. Yes, I could use a public repo (set private) but I wanted I learn how to do this and besides, I wanted to cast a wider net for which files to store but not worry about inadvertently publishing something with passwords embedded...
I didn't really see the benefit of this besides having a snapshot or backup of my home folder for my use case (I don't have that many config/text files that needs tracking), but I can recommend chezmoi for those interested.