To look at the contents of a file you can use the open
command in Nushell.
But if we want to open a file with an associated application you must use the start
command.
For example if you have an HTML file and use the open
command you see the HTML source.
When you use the start
command it opens the HTML file in your default browser.
You can also use the start
command to open a directory in the file manager of your operating system.
If you use MacOS and type start .
it will open the current directory in the Finder application.
When you use the start
command followed by a URL it will open the URL in your default browser.
Written with Nushell 0.103.0.