Forked from https://github.com/owulveryck/dotfiles Adapted with https://lord.re/posts/62-dotfiles-home-git/ Lots of fun from https://catonmat.net/linux-and-vim-notes
Pour configurer rapidement un nouvel ordinateur avec vos dotfiles :
# Option 1 : Avec Make (recommandé)
git clone https://github.com/daffycricket/dotfiles.git ~/dotfiles-tmp
cd ~/dotfiles-tmp
make bootstrap
make install
# Option 2 : Manuel
git clone --bare https://github.com/daffycricket/dotfiles.git $HOME/dotfiles
echo "alias config='git --git-dir=\$HOME/dotfiles --work-tree=\$HOME'" >> ~/.zshrc
source ~/.zshrc
config config --local status.showUntrackedFiles no
config checkoutmake help # Affiche l'aide complète
make bootstrap # Configure un nouvel ordinateur
make install # Installe tous les logiciels (setup.sh)
make check-syntax # Vérifie la syntaxe des scripts
make merge-branches # Merge: debian→develop, macos→develop, develop→main
make sync # Push toutes les branches vers origin
make status # Affiche l'état du dépôtalias config='git --git-dir=$HOME/dotfiles --work-tree=$HOME'# Ajouter/modifier un fichier
config add .zshrc
config commit -m 'tuning zshrc' .zshrc
# Avec commitizen (recommandé)
config cz commit
# Avec Make
make add FILE=.zshrc
make commitLe projet utilise plusieurs branches pour gérer les configurations spécifiques aux OS :
main: Branche principale stabledevelop: Branche de développementdebian: Configuration spécifique Debian/Ubuntumacos: Configuration spécifique macOS
Pour merger toutes les branches :
make merge-branches
make sync