yooranchen
V2EX  ›  macOS

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

  •  
  •   yooranchen · May 14, 2015 · 3858 views
    This topic created in 4058 days ago, the information mentioned may be changed or developed.
    打个比方
    cd 文件夹,此时文件夹名可以正常补全
    git clone >>输入git ,按下空格无提示,无法补全clone命令,按两下弹出文件列表
    adb devices>>输入adb,按下空格无提示,无法补全devices命令,按两下同样是弹出文件列表
    .inputrc文件没添加内容
    6 replies    2015-05-15 23:13:37 +08:00
    geeti
        1
    geeti  
       May 14, 2015
    这个我咋觉得本来就不行
    Septembers
        2
    Septembers  
       May 14, 2015 via Android
    oh-my-zsh欢迎您
    txl263
        3
    txl263  
       May 14, 2015
    这得看你用的什么shell吧。
    按两下空格弹出文件列表是什么鬼?
    yooranchen
        4
    yooranchen  
    OP
       May 14, 2015
    @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
       May 14, 2015
    @txl263 shell应该默认的,没有修改过
    codeplay
        6
    codeplay  
       May 15, 2015
    @yooranchen
    shell有很多种
    bash,csh,zsh等等
    你想要的这个特性,并非每种shell都支持的
    所以,欢迎来到zsh的世界
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1023 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 22:46 · PVG 06:46 · LAX 15:46 · JFK 18:46
    ♥ Do have faith in what you're doing.