Merge branch 'main' of ssh://repo.zenndev.xyz/ZennDev1337/dotfiles

This commit is contained in:
ZennDev1337 2024-07-25 14:55:17 +02:00
commit 891cb9f1e3
2 changed files with 23 additions and 0 deletions

16
fetch_dotfiles.sh Normal file
View file

@ -0,0 +1,16 @@
git clone --bare https://repo.zenndev.xyz/ZennDev1337/dotfiles.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}
fi;
config checkout
config config status.showUntrackedFiles no
rm -f $HOME/readme.md
rm -f $HOME/fetch_dotfiles.sh

7
readme.md Normal file
View file

@ -0,0 +1,7 @@
Tutorial https://www.atlassian.com/git/tutorials/dotfiles
use just
```bash
source <(curl -s https://repo.zenndev.xyz/ZennDev1337/dotfiles/raw/branch/main/fetch_dotfiles.sh)
```