Currently I need to access the folder in my desktop, and then a bin
subfolder to reach ./pycharm
.
So I want to automate all of:
cd Desktop
cd pycharm-community-2021.3.1
cd bin
./pycharm.sh
to
pycharm
I would like to ease the process by just inputting 'pycharm' in the terminal and have it launch. I'm aware Linux is incredible for such things - I just forgot how its called and how its done so. If someone could point me in the right direction. I would appreciate.
bash
, you want to add the lineexport PATH="${PATH}:~/Desktop/pycharm-community-2021.3.1/bin"
to the end of the file.bashrc
(or.profile
, or whichever shell startup file is appropriae for your shell of choice). (Theexport
is also not really needed in this case, but get in the habit of being explicit now to avoid frustrating problems later...)~/Desktop/pycharm-community-2021.3.1/bin
direcory, create a symlink,ln -s pycharm.sh pycharm
, which will enable you to simply typepycharm
without the leading./
or.py
extension.