Dotfiles Management
Overview
Section titled “Overview”Dusky uses a bare git repository for dotfile management - no symlinks needed.
Initial Setup
Section titled “Initial Setup”# Create bare repogit init --bare $HOME/.dotfiles
# Create aliasalias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# Hide untracked filesconfig config --local status.showUntrackedFiles noAdd to Shell
Section titled “Add to Shell”Add to ~/.zshrc or ~/.bashrc:
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'Track files
Section titled “Track files”config add ~/.config/hypr/hyprland.confconfig commit -m "Add Hyprland config"Push to remote
Section titled “Push to remote”config remote add origin git@github.com:username/dotfiles.gitconfig push -u origin mainCheck status
Section titled “Check status”config statusRestore on New System
Section titled “Restore on New System”# Clone bare repogit clone --bare git@github.com:username/dotfiles.git $HOME/.dotfiles
# Define aliasalias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# Checkout filesconfig checkout
# If conflicts, backup existing files firstmkdir -p ~/.config-backupconfig checkout 2>&1 | grep -E "\s+\." | awk '{print $1}' | xargs -I{} mv {} ~/.config-backup/{}config checkout