Created
June 2, 2022 06:50
-
-
Save sigismund/11b163cc27971cdddf9bd0ad2010e6ae to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/sh | |
for bin in ~/.local/share/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
This works only for flatpaks installed in user mode.