mirror of
https://github.com/aljazceru/omakub.git
synced 2026-01-31 09:54:23 +01:00
upd: add migration scripts for new zellij themes
This commit is contained in:
17
migrations/1746707329.sh
Normal file
17
migrations/1746707329.sh
Normal 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
|
||||
Reference in New Issue
Block a user