我发现在Windows的命令行中工作令人沮丧,主要是因为与linux和OS X上的“rxvt”、“xterm”或“terminal”等终端应用程序相比,控制台窗口使用起来很糟糕。主要的投诉:

No standard copy/paste. You have to turn on "mark" mode and it's only available from a multi-level popup triggered by the (small) left hand corner button. Then copy and paste need to be invoked from the same menu You can't arbitrarily resize the window by dragging, you need to set a preference (back to the multi-level popup) each time you want to resize a window You can only make the window so big before horizontal scroll bars enter the picture. Horizontal scroll bars suck. With the cmd.exe shell, you can't navigate to folders with \\netpath notation (UNC?), you need to map a network drive. This sucks when working on multiple machines that are going to have different drives mapped

是否有任何技巧或应用程序(付费或其他)可以解决这些问题?


当前回答

在github上有一个小程序mo.exe可以解决前三个问题: https://github.com/boolship/Mo

它运行在正常的DOS控制台窗口,Git Bash在Windows等。

更新:

该链接现在已弃用,请使用:https://github.com/boolship/MoDi

其他回答

看看Take Command。

Take Command是一个全面的交互式GUI和命令行环境,使使用Windows命令提示符和创建批处理文件更容易和更强大。

(然而,Take Command是“不免费的”。)

为什么不用Putty呢?

我在Windows上也有这些问题很多年了,但我最近发现了这个项目: 控制台

它仍然需要“标记模式”复制/粘贴,但至少可以从右键上下文菜单(所以你不需要将鼠标移动到左上角,然后再次移动到你想要选择的文本)

cmd.exe不支持UNC路径,但PowerShell支持。 (控制台可以配置为使用任何shell,包括cmd.exe和PowerShell)

试试控制台2。

控制台是Windows控制台窗口的增强。控制台功能包括:多个选项卡,类似文本编辑器的文本选择,不同的背景类型,alpha和彩色键透明度,可配置的字体,不同的窗口样式

我想你会喜欢PowerCMD,你可以同时工作4个命令窗口。此外,您还可以在PowerCMD中使用许多额外的命令。 PowerCMD