Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added initial support for flatpak #11981

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions plugins/flatpak/README.md
@@ -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 |
26 changes: 26 additions & 0 deletions plugins/flatpak/flatpak.plugin.zsh
@@ -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'