diff --git a/zsh/functions/snapper.zsh b/zsh/functions/snapper.zsh index 50289c6..8f02cda 100644 --- a/zsh/functions/snapper.zsh +++ b/zsh/functions/snapper.zsh @@ -357,69 +357,3 @@ alias snapsync='snap-sync' # snap-check-limine # snap-sync # snap-validate-serviceNC}" - echo -e "${SNAP_BLUE}║${SNAP_NC} Snapper-Limine-Plugin Validation ${SNAP_BLUE}║${SNAP_NC}" - echo -e "${SNAP_BLUE}╚════════════════════════════════════════════════════════════╝${SNAP_NC}\n" - - # Check if plugin is installed - echo -e "${SNAP_BLUE}==>${SNAP_NC} Checking plugin installation" - - if pacman -Qi snapper-limine-plugin &>/dev/null; then - echo -e "${SNAP_GREEN}✓${SNAP_NC} snapper-limine-plugin is installed" - pacman -Qi snapper-limine-plugin | grep "Version" | sed 's/^/ /' - else - echo -e "${SNAP_RED}✗${SNAP_NC} snapper-limine-plugin is NOT installed" - echo -e "\n${SNAP_YELLOW}Install with:${SNAP_NC} paru -S snapper-limine-plugin" - return 1 - fi - - # Check plugin script location - echo -e "\n${SNAP_BLUE}==>${SNAP_NC} Checking plugin script" - - local plugin_script="/usr/share/limine/snapper-limine.sh" - if [[ -f "$plugin_script" ]]; then - echo -e "${SNAP_GREEN}✓${SNAP_NC} Plugin script exists: $plugin_script" - ls -lh "$plugin_script" | sed 's/^/ /' - else - echo -e "${SNAP_RED}✗${SNAP_NC} Plugin script not found: $plugin_script" - fi - - # Check snapper config - echo -e "\n${SNAP_BLUE}==>${SNAP_NC} Checking snapper configuration" - - if [[ -f "/etc/snapper/configs/root" ]]; then - echo -e "${SNAP_GREEN}✓${SNAP_NC} Snapper root config exists" - else - echo -e "${SNAP_RED}✗${SNAP_NC} Snapper root config not found" - fi - - # Check limine.conf - echo -e "\n${SNAP_BLUE}==>${SNAP_NC} Checking limine.conf" - - if [[ -f "/boot/limine.conf" ]]; then - echo -e "${SNAP_GREEN}✓${SNAP_NC} limine.conf exists" - local snap_entries=$(sudo grep -c "^:.*Snapshot" /boot/limine.conf || echo "0") - echo -e " Snapshot entries: $snap_entries" - else - echo -e "${SNAP_RED}✗${SNAP_NC} limine.conf not found" - fi - - echo -e "\n${SNAP_GREEN}✓${SNAP_NC} Validation complete" -} - -# Quick snapshot aliases -alias snap='snap-create' -alias snapls='snap-list' -alias snaprm='snap-delete' -alias snapshow='snap-show' -alias snapcheck='snap-check-limine' - -# ============================================================================ -# Usage Examples (commented out - uncomment to see examples) -# ============================================================================ - -# snap-create "Before system update" -# snap-list 20 -# snap-show 42 -# snap-delete 42 -# snap-check-limine -# snap-validate-plugin