+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
19ad898
main
1{ writeShellApplication , git-filter-repo , blahaj , gay } :writeShellApplication { 2name = "git-undeadname" ; 3runtimeInputs = [ git-filter-repo blahaj gay ]; 4text = '' 5read -r -p "please give me your new name: " newname 6for _ in {1..3}; do sleep 0.25 && echo -n "."; done 7echo -n " wow " && sleep 0.25 8echo -n "\" $ newname \" " | gay -tu 9echo "is such a pretty name! i love it ^.^" && sleep 0.5 10read -rs -p "now could i have your old email (dw i wont look >.<): " oldemail 11echo "" 12read -r -p "and finally enter your new email (or leave blank if unchanged): " newemail 13 14if [[ -z " $ newemail " ]]; then 15newemail =" $ oldemail " 16fi 17 18mailmap = $( mktemp ) 19echo " $ newname < $ newemail > < $ oldemail >" > " $ mailmap " 20git filter-repo --force --mailmap " $ mailmap " 21blahaj -s 22rm " $ mailmap " 23 24echo "" 25echo "Congrats! Your name has been updated in all commits of this repo." 26echo "If you force-push it should update in the remote, but only do this" 27echo "if you understand the consequences of rewriting history (such as" 28echo "breaking commit signatures and open PR's)!" 29echo -e "See \e[4m\e]8;;https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository#side-effects-of-rewriting-history\e\\here\e]8;;\e\\\\\e[0m for more details." 30'' ; 31}