Skip to content

a CLI tool to automatically create formatted flatpak app launch shortcut commands in BASH, FISH and ZSH usind "alias"

License

Notifications You must be signed in to change notification settings

wilee8/flatalias

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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 it

How 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

About

a CLI tool to automatically create formatted flatpak app launch shortcut commands in BASH, FISH and ZSH usind "alias"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%