Collection of configuration and setup of tooling and applications
- This defaults to the location of
$XDG_CONFIG_HOMEwhich as of a while it defaults to~/.config/and many applications honour and check it - Going forward, you will always need to pre-prend your git commands with
--work-treeand--git-dir, or their env var equivalents, probs setup a alias like this
- From your git location:
git clone --bare https://github.com/crowz-fx/dotfiles.git- Now ignore all files not tracked so it's not a shitfest:
git --work-tree $HOME/.config/ --git-dir=$HOME/git/dotfiles.git/ config --local status.showUntrackedFiles no- Reset as it will stage the changes in the delta's between the remote and what may already exist:
git --work-tree $HOME/.config --git-dir=$HOME/git/dotfiles.git/ reset --mixed- In the directory you're point the
work-treeflag to (or replace the dot with the same location as thework-tree):
git --work-tree $HOME/.config/ --git-dir=$HOME/git/dotfiles.git/ restore .- Now, should be good to go, verify with a status:
git --work-tree $HOME/.config/ --git-dir=$HOME/git/dotfiles.git/ statusOne time perms (if not set already via git):
chmod +x setupRun!
./setup <list of ssh key names>
# Example:
# ./setup key-for-thing,key-for-remote,key-for-hackz