How can I open elementary apps from the command-line? Particularly Code and Files. I already found /usr/bin/io.elementary.files
and /usr/bin/io.elementary.code
, build they are not really convenient. Also, the latter doesn't detach from the terminal, so whenever the terminal window is closed, Code does the same.
Of course I can create an alias in the .bashrc
file (which I did), but maybe there is a better way?
UPDATE:
Seems like the best route for files is adding the following line to the .bashrc
:
alias files='/usr/bin/io.elementary.files'
So opening a dir from the terminal would be:
files /path/to/dir
For code, there still is the issue of detaching.