Oh, I always used: explorer.exe . I didn't know open was aliased to that.
Re:My Favorite One Liners
by banana_giraffe on Monday May 03, 2021 @09:52PM
(#27033237)
For what it's worth:
It's not "start" is an alias to "explorer", it's that "start" runs the args through "ShellExecute".
I mention this only because it has some other uses. For instance, Windows apps can install run handlers so that something like Start->Run->Excel will launch Excel. Just running "excel" on a command prompt won't work, but "start excel" will work, since that kicks off the right path.
You can also use something like "start /w filename.txt" to start an instance of your editor, and wait for it to close (well, mostly, some apps do weird things and break this)
Also, "notepad FILENAME" will open the file in notepad... etc.
Also, "vim FILENAME", where Vim is an alias set in $PROFILE that point to the vim executeable.
Re:My Favorite One Liners
by RealStickman_ on Monday May 03, 2021 @04:06PM
(#27029997)
Note that you don't have to specify an alias for it, if the vim executable is located in your $PATH.
Speaking of Windows, "pushd \\servername\sharename" is a simple way to mount a share in Windows, if you have the login creds cached, and set the new drive letter as your active drive. Useful if you need to bounce around a bunch of shares.