I'm trying to switch from cmd.exe to Powershell, but I'm very annoyed by the fact that if I try to execute something from the current folder, I have to type .\ before it, just like in Linux. Is there a way to disable this without adding the current folder or . to PATH?
2 Answers
If you are using tab complete, type the first few letters and press tab. It will automatically prepend .\
and if you keep pressing tab, it will keep suggesting the file name you need until you get to it (if there's more than 1 similar file name).
-
-
There are also some nice 3rd party tab completion things that may make this interaction nicer.– JoeyJul 24, 2010 at 5:46
Just like Linux, you'll have to add ".\" to your path. Powershell doesn't have a way to say, "automatically prepend .\ to %PATH%." The path statement will have to be modified.