Personal bare repo for configuration backup on linux system
Dotfiles: Best way to store in a bare git repository
alias config="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME"
git clone --bare https://github.com/Azathoth1729/dotfiles.git $HOME/dotfiles
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}
fi;
config checkout
config config status.showUntrackedFiles no
- vim/neovim
- ranger
- mcfly
- bat
- fd
- eza
- dust
- ripgrep
- zsh + oh-my-zsh
- alacritty
- starship
- conky
- nitrogen
- doom