I'm using oh-my-zsh on Mac OS X with homebrew'ed zsh 4.3.12. I stumbled recently on a weird problem. In scripts/not-used
I have several .R
files:
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
However, when I try ls scripts/not-used/
+Tab the first completion is ls scripts/not-used/_.R
where _
represents cursor position. If I press Tab again, I get this weird completion:
$ ls scripts/not-used/.R
breakdowns.R eventloop.R
How to unset this ugly (wrong) behaviour?
The options that are set are:
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
breakdowns.R eventloop.R
incorrect completion? Try unsetting thecompleteinword
option, as this allows completion to be done from both ends of the cursor, left and right. That means, that if I typepac
as inpacman
, and there's a command calledarpac
, thenarpac
will be in the list of completions, since completion occurs on both sides of the cursor instead of only to the right.breakdowns.R eventloop.R
is an incorrect completion, in the sense of incompleteness. If you look closely at the list of files, there are more than just those 2, ending with.R
.