我在 Mac OS X 上使用 oh-my-zsh 和自制的 zsh 4.3.12。我最近偶然发现了一个奇怪的问题。在scripts/not-used
我有几个.R
文件:
breakdowns.R eventloop.R process-largeclients.R process-qt.R
reprocess-pinning.R calculate-qt-error.R generate_decision_tree.R process-net.R
process-scalingexp.R
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试ls scripts/not-used/
+ 时Tab,第一个完成是ls scripts/not-used/_.R
where_
代表光标位置。如果我Tab再次按下,我会得到这个奇怪的完成:
$ ls scripts/not-used/.R
breakdowns.R eventloop.R
Run Code Online (Sandbox Code Playgroud)
如何取消这种丑陋(错误)的行为?
设置的选项是:
alwaystoend autocd autonamedirs autopushd cdablevars completeinword
correctall extendedglob extendedhistory noflowcontrol
histexpiredupsfirst histignoredups histignorespace histreduceblanks histverify
incappendhistory
interactive login longlistjobs monitor promptsubst
pushdignoredups pushdminus pushdsilent pushdtohome
sharehistory shinstdin zle
Run Code Online (Sandbox Code Playgroud)