Cycle through only specific file types in PS using custom tab completion on the command line
- 阅读更多 关于 Cycle through only specific file types in PS using custom tab completion on the command line
问题 I use PowerShell's PSReadline-based tab completion and I'm looking to implement the following custom completion behavior: In a folder I have File1.java File1.class File2.java File2.class If I use tab after java I got a list of the files: java .\File File1.java File1.class File2.java File2.class But I want to use a shortcut so I can scroll through only the .java-files but without the extension shown. I also want to get rid of ".\" in the name. So if I write java and use tab I want to have java