move flake to own repository

This commit is contained in:
Swarsel 2023-12-11 02:57:34 +01:00
commit 84b5cd816c
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
55 changed files with 13637 additions and 0 deletions

27
scripts/checkconfigstatus.sh Executable file
View file

@ -0,0 +1,27 @@
#!/bin/bash
# CFG=$(git --git-dir=$HOME/.cfg/ --work-tree=$HOME diff --numstat | wc -l)
CFG=$(git --git-dir=$HOME/.cfg/ --work-tree=$HOME status -s | wc -l)
CSE=$(git --git-dir=$HOME/Documents/GitHub/CSE_TUWIEN/.git --work-tree=$HOME/Documents/GitHub/CSE_TUWIEN/ status -s | wc -l)
PASS=$(git --git-dir=$HOME/.local/share/password-store/.git --work-tree=$HOME/.local/share/password-store/ status -s | wc -l)
if [ $CFG != 0 ]; then
CFG_STR='CONFIG'
else
CFG_STR=''
fi
if [ $CSE != 0 ]; then
CSE_STR=' CSE'
else
CSE_STR=''
fi
if [ $PASS != 0 ]; then
PASS_STR=' PASS'
else
PASS_STR=''
fi
OUT="$CFG_STR""$CSE_STR""$PASS_STR"
echo "$OUT"