feat: added initial support for flatpak

This commit is contained in:
nesper8 2023-10-16 12:51:06 +05:30
parent f939768751
commit 8bc7960180
No known key found for this signature in database
GPG Key ID: 8CFE21320AE4CC0E
2 changed files with 53 additions and 0 deletions

27
plugins/flatpak/README.md Normal file
View File

@ -0,0 +1,27 @@
# Flatpak Plugin
This plugin adds some aliases and functions for Flatpak package manager using the `flatpak` command.
```zsh
plugins=(... flatpak)
```
## Aliases
| Alias | Command | Description |
| :------- | :--------------------------- | :------------------------------------------------ |
| flatin | `flatpak install` | Installs an application or runtime |
| flatup | `flatpak update` | Update an installed application or runtime |
| flatun | `flatpak uninstall` | Uninstall an installed application or runtime |
| flatls | `flatpak list` | List installed apps and/or runtimes |
| flatpin | `flatpak pin` | Pin a runtime to prevent automatic removal |
| flatinf | `flatpak info` | Show info for installed app or runtime |
| flathis | `flatpak history` | Show history |
| flatrep | `flatpak repair` | Repair flatpak installation |
| flatcfg | `flatpak config` | Configure flatpak |
| flatbak | `flatpak create-usb` | Put applications or runtimes onto removable media |
| flatmask | `flatpak mask` | Mask out updates and automatic installation |
| flatfind | `flatpak search` | Search for remote apps/runtimes |
| flatrun | `flatpak run` | Run an application |
| flatps | `flatpak ps` | Enumerate running applications |
| flatkill | `flatpak kill` | Stop a running application |

View File

@ -0,0 +1,26 @@
#
# Flatpak
#
# Manage installed applications and runtimes
alias flatin='flatpak install'
alias flatup='flatpak update'
alias flatun='flatpak uninstall'
alias flatls='flatpak list'
alias flatpin='flatpak pin'
alias flatinf='flatpak info'
alias flatrep='flatpak repair'
alias flathis='flatpak history'
alias flatcfg='flatpak config'
alias flatbak='flatpak create-usb'
alias flatmask='flatpak mask'
# Find applications and runtimes
alias flatfind='flatpak search'
# Manage running applications
alias flatrun='flatpak run'
alias flatps='flatpak ps'
alias flatkill='flatpak kill'