ppwangs
V2EX  ›  问与答

zsh sh 补全问题

  •  
  •   ppwangs · Nov 23, 2016 · 1846 views
    This topic created in 3501 days ago, the information mentioned may be changed or developed.

    原来用 linux bash 的时候,用 sh 命令,如果目录下有文件如 aa bb cc.sh ,那么 tab 补全的时候会自动上 cc.sh ,但是在 zsh 下会列出所有文件,怎么修改一下啊…… 当然装的是 oh my zsh

    有时候,例如我文件夹下有一个 x.sh 文件,tab 补全的时候,提示出了

    sh x
    XPC_FLAGS         xar               xattr-2.6         xcodebuild        xcsdiagnose       xgettext5.16.pl   xjc               xmlcatalog        xpath5.16         xscertadmin       xsubpp            xxd               xzcmp             xzegrep           xzless
    XPC_SERVICE_NAME  xargs             xattr-2.7         xcrun             xed               xgettext5.18.pl   xml2-config       xmllint           xpath5.18         xslt-config       xsubpp5.16        xz                xzdec             xzfgrep           xzmore
    x.zsh             xattr             xcode-select      xcscontrol        xgettext.pl       xip               xml2man           xpath             xsanctl           xsltproc          xsubpp5.18        xzcat             xzdiff            xzgrep
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   885 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:27 · PVG 04:27 · LAX 13:27 · JFK 16:27
    ♥ Do have faith in what you're doing.