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
  • 69,223
  • 56
  • 216
  • 327
Aymen Hamza
  • 121
  • 2

1 Answers1

3

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

choroba
  • 9,273
  • 1
  • 30
  • 42