Skip to content

ejrichards/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Currently using the bare repo + git alias method for managing

Warning: Assumes no spaces in $HOME

curl https://raw.githubusercontent.com/ejrichards/dotfiles/master/.scripts/bootstrap.sh | bash

Add write

dot remote set-url --push origin [email protected]:ejrichards/dotfiles.git
dot config --local user.signingkey $HOME/.ssh/id_ed25519_sk.pub
dot config --local gpg.format ssh
dot config --local commit.gpgsign true

Hooks to clean/build caches

cat <<EOT > ~/.dotgit/hooks/post-checkout
#!/usr/bin/env bash
if command -v bat &> /dev/null; then
	bat cache --build
elif command -v batcat &> /dev/null; then
	batcat cache --build
fi
EOT

cat <<EOT > ~/.dotgit/hooks/post-merge
#!/usr/bin/env bash
if command -v bat &> /dev/null; then
	bat cache --build
elif command -v batcat &> /dev/null; then
	batcat cache --build
fi
EOT

chmod +x ~/.dotgit/hooks/post-checkout
chmod +x ~/.dotgit/hooks/post-merge