My dotfiles.
> git clone https://github.com/harman28/.dotfiles.git ~/.dotfiles
> echo 'source ~/.dotfiles/bashrc' >> ~/.bashrc
> cd ~/.dotfiles; git update-index --assume-unchanged
You're done.
Want a nice hosts file that blocks a bunch of ads?
> sudo ln -s ~/.dotfiles/extra/hosts /etc/hosts
> # sudo cat ~/.dotfiles/extra/hosts >> /etc/hosts
For the full setup, do this instead
> . ~/.dotfiles/setup.sh
It is completely untested though, so good luck with that.
I use the vars
to hold secrets, i.e. usually passwords, access tokens and the like.
The repo is public, so the file you see is a dummy one, and it's gitignored. After cloning, you can update it with your actual secrets and use it directly.
If you've got Dropbox or Drive set up, it might be a good idea to keep bashrc.vars
in your synced folder, and run something like this.
ln -s ~/Dropbox/vars/bashrc.vars ~/.dotfiles/files/bashrc.vars
This way you don't need to worry about those secrets being the only part of the repo not backed up on Github.
Add setup script.Lol.