From 1c1ef49f2024fb8c0886f1538cbf841bfd237f4b Mon Sep 17 00:00:00 2001 From: KenwoodFox Date: Sat, 29 May 2021 20:06:43 -0400 Subject: [PATCH] Add a readme --- .DOTFILES_README | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .DOTFILES_README diff --git a/.DOTFILES_README b/.DOTFILES_README new file mode 100644 index 0000000..cad7d1c --- /dev/null +++ b/.DOTFILES_README @@ -0,0 +1,17 @@ +# Clone repo +git clone --bare https://kitsunehosting.net/gitea/Kenwood/dotfiles.git $HOME/.dotfiles + +# Make a temp alias (will be perminant via .zshrc) +alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' + +# Pull stuff down! +config checkout + +# If things offend, backup or delete existing/differeing files. +# This could work but idk +mkdir -p .config-backup && \ +config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \ +xargs -I{} mv {} .config-backup/{} + +# Also use this to keep it all neat! +config config --local status.showUntrackedFiles no