Cygwin 提供显示 4543 种可能性;这是什么意思?

发布于 2024-08-11 03:11:23 字数 351 浏览 3 评论 0原文

家里的一只新小猫习惯在我工作时来看望我,它能够让我的系统用一些爪子做一些我不知道可能的事情。 Windows 改变了它们的堆叠顺序,浏览器放大了之前关闭的页面的一部分……不过,就在刚才,当我在 cygwin 控制台窗口前面的窗口中使用 vim 工作时,小猫走过了键盘的左端。 cygwin 窗口移到前面,cygwin 光标从提示符处向下移动一行,并打印出一些内容:

显示所有 4543 种可能性? (y 或 n)

我按了“n”,但我想知道是否有人可以告诉我我的小猫按了哪些键以及它醒来了。我已经使用 UNIX 多年了,但这条消息并没有引起任何注意。

TAB * 2 用于完成命令:-) 你们太棒了。希望能给大家一个答案!谢谢。我去告诉猫。

A new kitten in the household has the habit of visiting me while I work, and it is able to make my system do things with a few pawpresses that I didn't know were possible. Windows change their stacking order, browsers magnify parts of previously-closed pages ... Just now, though, while I was working in vim in a window in front of my cygwin console window, the kitten walked across the left end of the keyboard. The cygwin window moved to the front, the cygwin cursor moved down one line from the prompt, and something printed:

Display all 4543 possibilities? (y or n)

I pressed 'n', but I wonder if anyone can tell me what keys my kitten pressed and what it woke up. I've used UNIX for years, but this message doesn't ring any bells.

TAB * 2 for command completion :-) You people are great. I wish I could give all of you the answer! Thanks. I'll go tell the cat.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

满栀 2024-08-18 03:11:23

你的猫按了 TAB 键两次。这会导致自动完成功能在 PATH 中的每个文件夹中查找所有可执行文件。猜猜有多少?

通常你会输入几个字母,然后按 TAB 键,默认情况下,如果有多个选项,它会发出蜂鸣声,或者使用匹配的文件完成文本(完成也是可编程的,例如,如果你输入“svn” chTAB'它将自动完成为'svn checkout')。

Your cat hit the TAB key twice. That causes autocompletion to look for all the executable files in every folder in your PATH. Guess how many?

Normally you would type a few letters and then hit TAB, which, by default, will beep if there's more than one option or complete your text with the file that matches (completion is also programmable so that, for example, if you type 'svn chTAB' it will autocomplete to 'svn checkout').

旧情别恋 2024-08-18 03:11:23

这很可能是选项卡补全被激活。在大多数现代 shell 中,按一组键(或根本不按任何键),然后按 tab(在某些情况下两次)将尝试将您输入的文本与您的可执行文件之一的名称相匹配。路径。

It was most likely the tab completion being activated. In most modern shells, pressing a set of keys (or none at all), followed by tab (twice in some cases) will try to match the text you entered to the name one of the executables within your PATH.

宛菡 2024-08-18 03:11:23

按 T​​ab 键(持续 2 秒),

Bash 会要求您列出 PATH 中所有可能的内容

Tab (for 2 seconds)

and Bash is asking you to list all the possible stuff in your PATH

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文