I'm still very new to Ubuntu. I'm using 12.04, and I'd like to know if there is a way to run this program/shell script without typing:
It's kinda tedious and I'm quite lazy. Any help would be appreciated. Thanks.
You can add
After this you can run it with simply
You probably want to add this line in your
You can just create symlink. Create it in
After that you should make your
Now you should be able to run
Note that this is good solution only for home usage of Linux.
You can create a function in your
Or you can create an
In both cases, you can run it by calling:
If the file doesn't depend on where it's running, consider adding it to your
(Bad choice of name though, consider calling it something less generic.)
You can create a launcher by using following command:
Name it whatever you like and in command box type following
Now you can run that file using newly created launcher
You can create a .desktop file with following contents
Now save it with
Make it executable with this command
Now double click to open it.
We can define a function and a add hotkey by using
Now when you press F12, your program will launch.
Note: A quick way to determine the escape code:
Open your terminal and press Ctrl+V. Now press your favorite keyboard shortcut. The correct escape code should appear. Just make sure to replace
We can also run
Add the below lines in that file and save it,
Finally source the
Now you can run
In addition to the other good answers, consider symlinking into