/dotfiles

All my configurations .files

Primary LanguageLua

Dotfiles

Install

Setup a convenient alias

echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc
source .bashrc

Clone repository

Assuming SSH, otherwise clone through token on https://github.com/codepr/dotfiles.git

git clone --bare git@github.com:codepr/dotfiles.git $HOME/.cfg

Checkout dotfiles

dotfiles checkout

Be careful with any dotfile to be kept or removed if not needed (e.g. existing .bashrc etc)

Optionally set status.ShowUntrackedFiles no to reduce the noise when running status command

dotfiles config --local status.ShowUntrackedFiles no

This will set up a git repository, you can use all the common git command from now on, .cfg will store the .git tracking folder.