Follows the --bare
git repository approach for tracking dotfiles. Credit: https://www.atlassian.com/git/tutorials/dotfiles
After your installation is complete lets get our dotfiles setup.
- Setup
dotfiles
alias.
git init --bare $HOME/.cfg
alias dotfiles='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no
dotfiles config --local status.showUntrackedFiles no
echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc
- Pull down the repository
dotfiles remote add origin git@github.com:aclevername/manjaro-dotfiles.git
dotfiles pull origin main
dotfiles branch -m master main
- Run sync to update system and packages
./sync.bash install
To keep an existing installation up-to-date run
# make sure you have a clean dotifles directory
dotfiles pull origin main
./sync.bash
- autojump