Console2-更好的Windows命令提示符

I was working on my Mac today and while I maintain that the OS X finder is as effective as shooting your hands fill of Novocaine, I remain envious of the simplicity of their Terminal. Not much interesting has happened in the command prompt world in Windows since, well, ever. I actually blogged about text mode as a missed opportunity in 2004. That post is still valid today, I think. Text is fast. I spend lots of time there and I will race anyone with a mouse, any day.

我今天在Mac上工作,尽管我坚持认为OS X finder与拍摄诺卡卡因手一样有效,但我仍然羡慕它们终端的简单性。 从此以后,在Windows的命令提示符世界中发生的事情就没有多大了。 实际上在2004年写了一篇关于文本模式的博客,这是一个错失的机会。 我认为该职位今天仍然有效。 文字很快。 我在那里度过了很多时间,并且每天都会与任何人比赛。

I blogged about Console2 as a better prompt for CMD.exe in 2005. Here we are 6 years later and I hopped over there to see Console2 was still being developed. They were on build 122 then, and they are, magically and to their extreme credit, still around and on build 147. Epic.

在2005年写了关于Console2的博客,以更好地提示CMD.exe 。 6年后的今天,我跳到那儿,看到Console2仍在开发中。 他们当时在122号楼上,而他们在魔法和至高无上的信誉下仍在147号楼上。

开源项目可能已经完成,但它们永远不会死。 (Open Source projects may be done, but they are never dead. )

I downloaded Console2 at http://sourceforge.net/projects/console/files/ and put it c:\dev\utils which is in my PATH.

我从http://sourceforge.net/projects/console/files/下载了Console2 ,并将其放置在PATH中的c:\ dev \ utils中。

这是我为默认特效设置的方法。 (Here's how I set it up for my default awesomeness.)
  • Right-click in the main console and click Edit | Settings.

    右键单击主控制台,然后单击“编辑” 设定
  • Under Console, set your default Startup Directory

    在控制台下,设置默认的启动目录
  • Under Appearance|More, hide the menu, status bar and toolbar.

    在外观|更多下,隐藏菜单,状态栏和工具栏。
  • Under Appearance, set the font to Consolas 15. Not 14, not 16. Black background, Kermit green foreground color.

    在外观下,将字体设置为Consolas15。不是14,不是16。黑色背景,柯米特绿色前景色。
  • Set Window Transparency to a nice conservative 40 for both Active and Inactive. Not too in your face, but enough glassiness to say "I'm a subtle badass."

    对于“活动”和“不活动”,将“窗口透明度”设置为不错的保守40。 你的脸不太像,但是足够的浮夸地说“我是一个微妙的坏蛋”。
  • Under Behavior set "Copy on Select"

    在“行为”下,设置“选择时复制”
  • Under Hotkeys, change the New Tab 1 hotkey to Ctrl-T because that's what it should be. You'll have to click on the hotkey, then in the textbox, then type the hot-key you want AND press Assign for it to stick.

    在“热键”下,将“新选项卡1”热键更改为Ctrl-T,因为它应该是这样。 您必须先单击热键,然后在文本框中输入所需的热键,然后按分配以使其保持不变。
  • Under Hotkeys, change Copy Selection to Ctrl-C and Paste to Ctrl-V then rejoice and wonder why Windows doesn't work like this today. At this point, you may want to device if you want "Copy on Select" to happen automatically under Behavior. That'll save you the Control-C if you like.

    在“热键”下,将“复制选择”更改为Ctrl-C,将“粘贴”更改为Ctrl-V,然后欣喜不已,并想知道为什么Windows今天无法像现在这样工作。 此时,如果希望“行为”下的“选择时复制”自动发生,则可能需要设备。 如果愿意,可以节省Control-C。
  • Now, the subtlety. Under Tabs, you (if you are me) want two default tabs, one for CMD.EXE and one for PowerShell because you don't like your peas and carrots to touch on your plate.

    现在,微妙之处。 在“选项卡”下,您(如果您是我)想要两个默认选项卡,一个用于CMD.EXE,一个用于PowerShell,因为您不喜欢豌豆和胡萝卜碰到盘子。

    • Set your Console|cmd.exe first tab to this shell if you want it to be a Visual Studio command prompt. Be aware of the PATH if you are not on x64 like I am.

      如果希望它成为Visual Studio命令提示符,则将Console | cmd.exe第一个选项卡设置为此外壳程序。 如果您不像我一样使用x64,请注意PATH。

    • Then, make another Tab called PowerShell with this path:

      然后,使用以下路径制作另一个名为PowerShell的Tab:

      • %SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe

        %SystemRoot%\ syswow64 \ WindowsPowerShell \ v1.0 \ powershell.exe
      • And I used the vspowershell.ico icon 'cause I'm into flair.

        我使用了vspowershell.ico图标,因为我很精明

You'll have a nice "New Tab" option where you can make one of either shell. Note the general loveliness of this understated shell. I can open a new Tab with Ctrl-T (or lots) and use Ctrl-Tab to move between them. I took the screenshot with the background so you can see the transparency.

您将有一个不错的“ New Tab”选项,您可以在其中任一外壳程序中创建一个。 注意这个低调外壳的一般可爱之处。 我可以使用Ctrl-T(或很多)打开新的标签页,然后使用Ctrl-Tab在它们之间移动。 我将屏幕截图与背景一起使用,以便您可以看到透明度。

One final reason why Console2 rocks? It's freaking resizable in two directions, unlike the Windows CMD.exe console.

Console2摇摇欲坠的最后一个原因是? 与Windows CMD.exe控制台不同,它在两个方向都无法调整大小。

Console2 is a great little front-end for your existing shell, no matter what it is. Note that Console2 isn't a shell itself, it's just a face on whatever you are already using. Enjoy.

无论它是什么,Console2都是您现有外壳的绝佳前端。 请注意,Console2本身不是外壳,它只是您已使用的任何东西的一面。 请享用。

相关链接 (Related Links)

翻译自: https://www.hanselman.com/blog/console2-a-better-windows-command-prompt

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值