add basic first time installation
This commit is contained in:
Executable
+16
@@ -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
|
||||
Reference in New Issue
Block a user