upd: add migration scripts for new zellij themes

This commit is contained in:
Luca Pattocchio
2025-05-08 14:31:21 +02:00
parent e127f4b594
commit 0f2f7793ea

17
migrations/1746707329.sh Normal file
View File

@@ -0,0 +1,17 @@
# Overwrite old zellij themes with new ones
if [ -d ~/.config/zellij/themes ]; then
files=()
for file in ~/.config/zellij/themes/*.kdl; do
if [[ -f "$file" ]]; then
files+=("$file")
fi
done
if [ ${#files[@]} -gt 0 ]; then
for file in "${files[@]}"; do
if [ -d "$OMAKUB_PATH/themes/$(basename "$file" .kdl)" ]; then
cp "$OMAKUB_PATH/themes/$(basename "$file" .kdl)"/zellij.kdl ~/.config/zellij/themes/$(basename "$file" .kdl).kdl
fi
done
fi
fi