【发布时间】:2015-10-08 17:35:39
【问题描述】:
每当我在 python shell 中按 tab 键创建缩进块时,我都会收到消息
Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 5 2014, 20:42:22)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Display all 186 possibilities? (y or n)`
这使我无法正确缩进任何内容。我不确定如何在 shell 中启用选项卡完成。 我发现this blog post 详细说明了如何通过创建一个 .pyrc 文件并将它的来源放在你的 .bashrc 中来启用选项卡完成。浏览我的 .zshrc,我找不到任何来源任何此类文件的内容。
我使用的是 Mac OS X。
【问题讨论】:
-
你在使用 zsh 吗?还是 bash?
标签: python shell autocomplete