add basic first time installation

This commit is contained in:
desolate
2026-05-14 18:21:18 +03:00
commit 7cb75b72c8
72 changed files with 1198 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
install_package "yazi"
plugin="mount"
if [ -d "$HOME/.config/yazi/plugins/$plugin.yazi" ]; then
gum style --foreground 10 "✓ yazi:$plugin"
return 0
fi
if gum spin --title="Installing plugin: $plugin" --show-error -- ya pkg add "yazi-rs/plugins:$plugin"; then
gum style --foreground 10 "✓ yazi:$plugin"
else
gum style --foreground 0 "✗ yazi:$plugin"
fi