Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boredsquirrel/flatalias
a CLI tool to automatically create formatted flatpak app launch shortcut commands in BASH, FISH and ZSH usind "alias"
https://github.com/boredsquirrel/flatalias
alias flatpak linux shortcuts terminal
Last synced: 2 months ago
JSON representation
a CLI tool to automatically create formatted flatpak app launch shortcut commands in BASH, FISH and ZSH usind "alias"
- Host: GitHub
- URL: https://github.com/boredsquirrel/flatalias
- Owner: boredsquirrel
- License: gpl-3.0
- Created: 2023-08-29T19:22:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-09T05:23:31.000Z (over 1 year ago)
- Last Synced: 2024-04-03T12:37:29.281Z (10 months ago)
- Topics: alias, flatpak, linux, shortcuts, terminal
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flatalias
a CLI tool to automatically create formatted flatpak app launch shortcut commands in BASH, FISH and ZSH usind "alias"Usage:
- download to your $PATH for example `~/.local/bin` or `~/.bin`
- make it executable `chmod +x flatalias`
- run itHow it works:
1. it lists your installed Flatpak apps
2. From this list it extracts the application IDs and formats it to have no dashes, underlines or capital letters
3. It searches for the formatted appID in your `~/.bashrc`, `~/.config/fish/config.fish` or `~/.zshrc`
4. If its not there, it appens a line like following to the document (append = it skips shell config files you don't use!)```
alias libreoffice="flatpak run org.libreoffice.LibreOffice"
```### Edge cases where problems can occur
- you have two apps with the same name but different origin, only one app is aliased```
org.origin1.app
org.origin2.app
```- you have an app that is called the same in your path, for example `firefox` and the `Firefox Flatpak`