working on zsh

This commit is contained in:
2026-03-11 14:21:24 +01:00
parent cf816ede62
commit 9146ac0124
8812 changed files with 810 additions and 587 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
set -euo pipefail
#creating a timestamp-file to see whether this script ran
TIMESTAMP_FILE="/home/henrov/nixos_conf/nixos_timestamp.txt"
date +"%Y-%m-%d %H:%M:%S" > "$TIMESTAMP_FILE"
echo "File $TIMESTAMP_FILE created"
#cleaning up .backup files (do not worry, they exist safely in ./assets/copy_stuff/.config)
find /home/henrov/.config -name "*.backup" -delete
echo "~/.config/*.backup files deleted"
#copying stuff from assets/copy_stuff to ~
echo "Now in path $(pwd)"
COPY_SCRIPT="/home/henrov/Repos/nixos/henrovnix_ok/assets/scripts/copy_stuff.sh"
if [ ! -f "$COPY_SCRIPT" ]; then
echo "Error: Script $COPY_SCRIPT does not exist."
exit 1
fi
"$COPY_SCRIPT"