[英]How to make Powershell autocomplete like Linux/Unix systems or “cmd” shell?
Every time that I hit TAB key the Powershell completes with an .\
at the begging of the completed word.每次我按 TAB 键时,Powershell 都会在完成单词的乞求时以.\
结尾。
I have one file named Test.jar
and I will use mv
command to change the name of the file to any other.我有一个名为Test.jar
的文件,我将使用mv
命令将文件名更改为其他文件名。 If I press TAB while typing the existing file it's look like:如果我在输入现有文件时按 TAB,它看起来像:
$ mv .\Test.jar ...
Have I way that I could change the autocompletion behavior?我有办法改变自动完成行为吗?
Some would argue that the PowerShell Autocomplete behavior is "more" correct, and "syntactically better" than bash or equivalent having a plain file name.有人会争辩说,PowerShell 自动完成行为比 bash 或具有纯文件名的等效项“更”正确,并且“语法更好”。
When it adds .\
to the beginning, it doesn't affect functionality.当它将.\
添加到开头时,它不会影响功能。 It is clarifying what you are entering.它正在澄清您输入的内容。 It both clarifies that:它都澄清了:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.