bash equivalent to the Windows "start" command line

Posted on 2007-05-30

One of the things that I missed when I moved from Windows to Linux was the start command, which would launch the correct program for a given file. Well, add the following line to ~/.bashrc to get it:

alias start=xdg-open

Then either logout/login, or run (the leading dot & space are important):

. ~/.bashrc

Now you can launch the appropriate file by doing

start artwork.png

Tags: bash debian linux start xdg-open