2

I tried to create my own command to run Clion from terminal and I found a way to declare a function without creating a script. I run this command in terminal:

function CLion { /opt/clion/bin/clion.sh "$1"; }   

So any time I want to run the app I call the function name, but when I restart my PC I have to declare it again and again, any solution?

Zanna
  • 70,465

1 Answers1

3

Save the definition into the .bashrc file located in your $HOME directory.

choroba
  • 9,643