add flathub applications to commandline path

Used the script provided here, placed in ~/.local/bin/ but had to change the first line to my actual bash path, not sh, so for me on Debian testing i made the first line:

#!/usr/bin/bash

https://opensource.com/article/21/5/launch-flatpaks-linux-terminal

Other than that, exactly the script and usage provided by that article works great!

(Without doing that i got the bash Syntax error: “(” unexpected for line 82, ARG=( "${@}" ).)

To put it in ~/.bashrc.d/flatpak_aliases like shown in the article, for it to work after the initial . ~/.bashrc.d/flatpak_aliases on subsequent startups, you may have to add this to your ~/.bashrc:

for file in ~/.bashrc.d/*;
do
  source "$file"
done