V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yooranchen
V2EX  ›  macOS

终端输入时,Tab 键只能补全文件和文件夹名,无法补全命令

  •  
  •   yooranchen · 2015-05-14 01:42:43 +08:00 · 3053 次点击
    这是一个创建于 3283 天前的主题,其中的信息可能已经有所发展或是发生改变。
    打个比方
    cd 文件夹,此时文件夹名可以正常补全
    git clone >>输入git ,按下空格无提示,无法补全clone命令,按两下弹出文件列表
    adb devices>>输入adb,按下空格无提示,无法补全devices命令,按两下同样是弹出文件列表
    .inputrc文件没添加内容
    6 条回复    2015-05-15 23:13:37 +08:00
    geeti
        1
    geeti  
       2015-05-14 02:41:02 +08:00
    这个我咋觉得本来就不行
    Septembers
        2
    Septembers  
       2015-05-14 05:54:00 +08:00 via Android
    oh-my-zsh欢迎您
    txl263
        3
    txl263  
       2015-05-14 05:57:36 +08:00
    这得看你用的什么shell吧。
    按两下空格弹出文件列表是什么鬼?
    yooranchen
        4
    yooranchen  
    OP
       2015-05-14 08:18:00 +08:00
    @txl263
    .AndroidStudio1.2/ .gemrc .vimrc
    .AndroidStudioPreview1.2/ .gitconfig .zlogin
    .CFUserTextEncoding .gitignore_global .zshrc
    .DS_Store .gradle/ Applications/
    .Genymobile/ .hgignore_global Desktop/
    .Trash/ .inputrc Documents/
    .android/ .m2/ Downloads/
    .bash_history .mkshrc Library/
    .bash_profile .profile Movies/
    .cache/ .rvm/ Music/
    .config/ .ssh/ Pictures/
    .emacs.d/ .subversion/ Public/
    .ext/ .vim/ Soft/
    .gem/ .viminfo
    类似这样
    yooranchen
        5
    yooranchen  
    OP
       2015-05-14 08:20:05 +08:00
    @txl263 shell应该默认的,没有修改过
    codeplay
        6
    codeplay  
       2015-05-15 23:13:37 +08:00
    @yooranchen
    shell有很多种
    bash,csh,zsh等等
    你想要的这个特性,并非每种shell都支持的
    所以,欢迎来到zsh的世界
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5643 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 06:49 · PVG 14:49 · LAX 23:49 · JFK 02:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.