yooranchen
V2EX  ›  macOS

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

  •  
  •   yooranchen · May 14, 2015 · 4142 views
    This topic created in 4197 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
    geeti
    May 14, 2015
    1
    这个我咋觉得本来就不行
    Septembers
    Septembers
    May 14, 2015 via Android
    2
    oh-my-zsh欢迎您
    txl263
    txl263
    May 14, 2015
    3
    这得看你用的什么shell吧。
    按两下空格弹出文件列表是什么鬼?
    yooranchen
    yooranchen
    OP
    May 14, 2015
    4
    @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
    yooranchen
    OP
    May 14, 2015
    5
    @txl263 shell应该默认的,没有修改过
    codeplay
    codeplay
    May 15, 2015
    6
    @yooranchen
    shell有很多种
    bash,csh,zsh等等
    你想要的这个特性,并非每种shell都支持的
    所以,欢迎来到zsh的世界
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2323 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 13:08 · PVG 21:08 · LAX 05:08 · JFK 08:08
    ♥ Do have faith in what you're doing.