move xdg directories to the default location.

a lot of applications seem to hardcode this location, so it's better to
have something default, or default-adjasoned.
This commit is contained in:
2025-11-19 09:37:29 +01:00
parent f6b93d5126
commit a50ead749a
61 changed files with 6 additions and 6 deletions

11
.local/bin/git-leaderboard Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/sh
if [ -z ${1+x} ]; then
printf "\033[91mdidn't include a file exstension. (eg. \".cs\")\n"
exit 1
fi
# get all the files with the file extension
git ls-files | grep -E ".*\\$1" |
xargs -n 1 git blame --line-porcelain | # run git blame on each file, which shows the commit for each line
grep "^author " | sort | # aquire the authors of this output and sort it
uniq -c | sort -nr # count all the unique authors and sort by number