Created
August 21, 2025 14:48
-
-
Save Greenheart/3bca849fd879802c419279ef08ca662c to your computer and use it in GitHub Desktop.
Generate Flatpak aliases that can be added to the PATH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/bash | |
| # List installed flatpaks which have a command specified | |
| # These aliases can then be added to the PATH in for example .bashrc | |
| for bin in /var/lib/flatpak/exports/bin/*; do | |
| appid="$(basename $bin)" | |
| cmd="$(flatpak info -m $appid | awk -F= '/^command=/ {print $2}')" | |
| echo "alias ${cmd}=$bin" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment