3 ms·
I usually maintain a little git repository `.dotfiles` with all my personal preferences and config files. Although it is designed to be made public, I didn't do
by sandreas 3y ago
I usually maintain a little git repository `.dotfiles` with all my personal preferences and config files. Although it is designed to be made public, I didn't do it - I was too scared I forgot something :-) In this repo I also created subdirectories for automated setup scripts for different operating systems. It looks something like this:
docker
... custom docker files and scripts
etc
git
.gitconfig
.gitignore_global
ssh
hosts.d
config
vim
vimrc
zsh
... (multiple config files and dirs, e.g. powerlevel10k)
linux
artix
setup.sh
fedora
setup.sh
ubuntu
setup.sh
macos
setup.sh
common_functions.sh
All I need to do is install git, check out the repo and run the setup script of the current system - works for linux and macOS, although I don't use macOS that much any more. These Scripts are designed to be run multiple times without damaging anything.
Works out pretty well. For macOS I tried to automate as much as possible (via `brew` and `brew --cask` and for settings via `defaults write`), similar to all these repositories using this technique: https://dotfiles.github.io/inspiration/ https://dotfiles.github.io/inspiration/
Additionally from time to time I try to lookup hardening guides like this: https://github.com/drduh/macOS-Security-and-Privacy-Guide https://github.com/drduh/macOS-Security-and-Privacy-Guide