These are my personal dotfiles. Feel free to look around but don't expect anything good.
Create a .dotfiles folder:
git init --bare $HOME/.dotfiles
Crate an alias dotfiles
so you don't need to type it all over again:
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME
Set git status to hide untracked files:
dotfiles config --local status.showUntrackedFiles no
Now you can use regular git commands such as:
dotfiles status
dotfiles add .config/neovim
dotfiles commit -m "add neovim"
dotfiles push
Clone the github repository:
git clone --bare https://github.com/KrisjanisP/dotfiles.git $HOME/.dotfiles
Checkout the actual content from the git repository:
dotfiles checkout
Because the alacritty config requires specific fonts to be installed,
I have added the script ./scripts/setup-fonts.sh
.
The script downloads FiraCode Nerd Font zip file into a temporary directory,
unzips the archive and moves .ttf and .otf files into ${HOME}/.fonts
.
Afterwards it refreshes font cache.