I downloaded CLion from Jetbrains, and it is a .tar.gz with a shell script to run it. I decided to put it in my /opt folder, but now I can’t figure out how to run it from anywhere, and have it available in /bin (for programs like dmenu that search /bin for executables).
I tried adding the path to the script (e.g. /opt/clion/clion-2017.1.1/bin) to my $PATH in my .*rc file, but that didn’t make it searchable in /bin? How can I have a single point of maintenance for something like this?
Advertisement
Answer
If you really need the executable to appear in /bin
you can create a link:
ln -s /opt/path/to/script.sh /bin