Loading repository data…
Loading repository data…
yardnsm / repository
:zap: Welcome to my world. Managed by https://github.com/yardnsm/.setup
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
These are my dotfiles. A collection of zsh, git, vim and macOS configurations. I built this repository completely from scratch, with the main focus of organization in mind.
This repository used to have a lot of installation and setup-related scripts, but I realized
this method of organization was probably a bit overkill and not so portable between machines. So,
currently, this repository contains my entire ~/.config directory (well, not exactly the entire
directory, but most of it).
The setup scripts moved to a new repository, located at yardnsm/.setup.
I'm using .gitattributes filters to mask out sensitive data (this is taken from
rafi/.config).
After cloning this repository, you should setup the custom filters (the installer already does this automatically):
git config --local filter.vault.clean "sed -f ~/.config/clean.sed"
git config --local filter.vault.smudge "sed -f ~/.config/smudge.sed"
And create the smudge.sed, then fill it up. The installer already does this, but you can also
convert the clean.sed file to a valid template:
sed 's/^.*\({{.*}}\).*$/s\/\1\/value\//' clean.sed > smudge.sed
Now, whenever you stage files, the clean.sed will prevent secrets being committed. And on
checkout, the smudge.sed will inject your secrets into their proper placeholders. The
smudge.sed file is ignored from being committed.
MIT © Yarden Sod-Moriah