Ha.nnes.dev
🖥️
dotfiles
A quick way to restore many of my settings on a new computer.
Language: Shell
This repo is designed to be cloned as a bare repo in my home directory to quickly restore lots of my configuration files. I followed this tutorial to set it up.
Instructions
# Install git
sudo apt install git
# Create an alias
alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME"
# Clone the repo
git clone --bare git@github.com:Hasnep/dotfiles.git $HOME/.dotfiles
# Check out the repo
dotfiles checkout
# Don't show untracked files
dotfiles config --local status.showUntrackedFiles no
# Set up pre-commit
GIT_DIR=$HOME/.dotfiles GIT_WORK_TREE=$HOME pre-commit install