更好的 Windows 命令行 shell

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5724/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 05:09:28  来源:igfitidea点击:

Better windows command line shells

windowsshellcmd

提问by JSN

Is there a better windows command line shell other than cmdwhich has better copy paste between Windows' windows and console windows?

除了cmd在 Windows 的窗口和控制台窗口之间具有更好的复制粘贴功能之外,是否还有更好的 Windows 命令行外壳?

采纳答案by Chris Miller

Take Commanddoes support Copy/Cut/Paste from the keyboard and the mouse. It's pretty handy if you do a lot of work from a command prompt. It also supports:

Take Command确实支持从键盘和鼠标复制/剪切/粘贴。如果您从命令提示符执行大量工作,这将非常方便。它还支持:

  • Command and folder history, with popup windows to select prior commands or folders.
  • Screen scroll back buffer
  • Enhanced batch commands
  • Built in FTP/HTTP file access
  • A toolbar with programmable buttons
  • 命令和文件夹历史记录,带有用于选择先前命令或文件夹的弹出窗口。
  • 屏幕回滚缓冲区
  • 增强的批处理命令
  • 内置 FTP/HTTP 文件访问
  • 带有可编程按钮的工具栏

Note: It's a paid tool, with price of $99.95.

注意:这是一个付费工具,价格为 99.95 美元。

回答by nray

Enable QuickEdit mode, under the Optionstab of your shortcut to the command shell. Mark with the mouse, right-click to copy, right-click again to paste.

在命令外壳快捷方式的选项选项卡下启用QuickEdit 模式。用鼠标标记,右击复制,再次右击粘贴。

While you're there, enable a hotkey (like CTRL+ ALT+ C) for lightning fast access to the shell.

当你在那里,使热键(如CTRL+ ALT+C为快如闪电访问外壳)。

And no, you can't have CTRL+ Cfor COPY, because CTRL+ Cmeans BREAK.

不,您不能将 CTRL+C用于COPY,因为CTRL+C表示BREAK

On a related note, the Microsoftee who changed the default setting of QuickEdit modebetween Windows Server 2000 and 2003 is an idiot and I heap curses upon him each workday.

与此相关的是,在 Windows Server 2000 和 2003 之间更改QuickEdit 模式默认设置的 Microsoftee是个白痴,我每个工作日都在诅咒他。

回答by Matt Hamilton

Windows PowerShell is the obvious choice when it comes to "better windows command line shell other than cmd". Its clipboard handling isn't that much of an improvement - mark with the mouse, Enter to copy, or right mouse click to paste.

当谈到“除了 cmd 之外的更好的 Windows 命令行 shell”时,Windows PowerShell 是显而易见的选择。它的剪贴板处理并没有太大的改进 - 用鼠标标记,输入复制,或鼠标右键单击粘贴。

回答by Pat

This probably is not exactly what you want, but you can take a look at Console2

这可能不是你想要的,但你可以看看Console2

I have it configured so that shift+select auto copies and middle click pastes, really handy, internally it uses same old cmd.exe so you are not really getting a different shell.

我已将其配置为 shift+select 自动复制和中键单击粘贴,非常方便,在内部它使用相同的旧 cmd.exe,因此您并没有真正获得不同的外壳。

By the way, I guess Ctrl+C= copy is not the best idea in a command line context because it usually means interrupt running process.

顺便说一句,我猜Ctrl+C= copy 在命令行上下文中不是最好的主意,因为它通常意味着中断正在运行的进程。

回答by TJR

Depending on what you're trying to do with the shell, rxvtin cygwinis good.

根据你想用的壳里做什么,在rxvtCygwin的好。

You'll get the nicety of auto copy on selection and middle click paste. The biggest downside is that some windows console apps don't play nice with cygwin.

您将在选择和中键粘贴时获得自动复制的功能。最大的缺点是某些 Windows 控制台应用程序与 cygwin 不兼容。

回答by Karim

PowerCmd is cheaper than TakeCommand and has a lot of powerful features - not the least of which is better handling of Cut/Copy/Paste. I've only been using it a short time but I'm really impressed so far:

PowerCmd 比 TakeCommand 便宜,并且具有许多强大的功能——其中最重要的是更好地处理剪切/复制/粘贴。我只使用了很短的时间,但到目前为止我印象非常深刻:

Summary from the site:

来自网站的摘要:

PowerCmd enhances your command prompt with an easy-to-use Windows GUI-style interface and allows you to run multiple consoles within a single tabbed window. You can easily organize multiple consoles in vertical, horizontal, and grid forms. Auto-log, auto-completion, keywords highlight, configurable font and colors, customizable toolbar for frequently used commands or tools and minimizing to tray are easy solutions to daily needs. With PowerCmd, you can save and restore your sessions from last time.

PowerCmd 通过易于使用的 Windows GUI 样式界面增强您的命令提示符,并允许您在单个选项卡式窗口中运行多个控制台。您可以轻松地以垂直、水平和网格形式组织多个控制台。自动记录、自动完成、关键字突出显示、可配置的字体和颜色、用于常用命令或工具的可自定义工具栏以及最小化到托盘是满足日常需求的简单解决方案。使用 PowerCmd,您可以保存和恢复上次的会话。

Site: http://www.powercmd.com/

网站:http: //www.powercmd.com/

Features: http://www.powercmd.com/features.php

特点:http: //www.powercmd.com/features.php

回答by Peter Schwier

There are two portion to cmd.exe. First there is the window that pops up for dealing with the text console. I would replace that with ConEmu. That program is actually meant as a wrapper for the Far File manager but works just fine without it. It is very similar to Console2 but also is much more stable and has better features.

cmd.exe 有两部分。首先是弹出处理文本控制台的窗口。我会用ConEmu替换它。该程序实际上是作为远文件管理器的包装器,但没有它也能正常工作。它与 Console2 非常相似,但也更加稳定并且具有更好的功能。

Second there is the command line interpreter. I would replace that with Powershellif you actually need any of its features.

其次是命令行解释器。如果您确实需要它的任何功能,我会用Powershell替换它。

I currently run using ConEmu with a batch file to setup my preferred environment. This is kept in my Dropbox folder so it remains synchronized between my computers.

我目前使用带有批处理文件的 ConEmu 来设置我的首选环境。这保存在我的 Dropbox 文件夹中,因此它在我的计算机之间保持同步。

回答by Joel Coehoorn

Have you thought through what behavior you want to replace the current Ctrl+Cfunctionality?

您是否考虑过要替换当前Ctrl+C功能的行为?

回答by Lasse V. Karlsen

Not sure what specifically you mean by better copy/pastebut try Take Command.

不确定您所说的更好的复制/粘贴具体是什么意思,但请尝试Take Command

Take Command supports Shift+Ins for paste and Shift+Del for cut, but apparently nothing for copy, will dig some more.

Take Command 支持 Shift+Ins 用于粘贴,Shift+Del 用于剪切,但显然没有用于复制,将挖掘更多。