Thees are my dotfiles. Here is an overview:
Run
./bootstrap/install-dotfiles.shto install and update dotfiles, however boot strapping is a more involved process.
See procedure.sh for a series of notes on how to do this.
- configs: Any top level file or folder in
configsis symlinked to ~/ and prefixed with a.. Any conflicts are moved tofoo.bkif it is a file, orfoo.symbkif its a symlink conflict. If you see conflict warnings, you should handle those sooner than later since the conflict management is backup destructive. - ssh: SSH is a weird beast, since its so crucial to the boostrapping process and also contains vital secrets. We symlink files from inside
sshto inside~/.ssh/instead of the whole folder. We also updateauthorized_keysfrom github.
Periodically dump a brew file:
cd ~/.dotfiles
brew bundle dump # dump whats installed
brew bundle cleanup # clean the brew file
brew bundle check # check the statusTo install, run:
brew bundle
I did a few clever and simple bash things that I have found to be extremely bullet proof and simple. They have survived mostly over the course of like 4-5 installs, which is a personal record.
- .bashrc.d: fragment based bashrc files
- os_diff.sh: target specific platforms with bash
- ssh into USG
- remove the offending hostname from
/etc/hostswithvi - reload dsnmasq
/etc/init.d/dnsmasq force-reload