Integrating with the console

Just a quick technical note.
I was recently seeing how one of the tutors on the project I’m working on behaved with MacOS X and the console, I realised that he was using a lot the command open [filename] to open any document and decided I wanted that (I figured out that KDE had that but I couldn’t find the command open was not there).
Just after that, I realised at some other moment that we indeed have some kde-open command which does exactly that.

Since I didn’t like that it’s a little too long to write it all the time and that I don’t like to have my console polluted with doubtfully useful debug information I created this simple alias:

alias open="kde-open 2> /dev/null > /dev/null"

Maybe it can be useful for somebody.
Cheers!

10 thoughts on “Integrating with the console”

  1. Just one awesome alias more what to use daily!

    Many times there is a need just to open file from CLI and to first check the MIME and then itself write appname filename.ext

    Thanks for the TIP!

  2. Never knew about kde-open and xdg-open. I’ve been using this shell script:

    #!/bin/sh
    exec kfmclient exec “$@”

    since the KDE3 days.

Comments are closed.