Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
history substring search a bit too aggressive sometimes
- X-seq: zsh-users 21814
- From: John Covici <covici@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: history substring search a bit too aggressive sometimes
- Date: Sun, 28 Aug 2016 09:01:56 -0400
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Covici Computer Systems
- Reply-to: covici@xxxxxxxxxxxxxx
Hi. I am having a very annoying problem properly using history
substring search. It works great if I do up arrow after typing a
string, it will find a string which is not at the beginning which is
great, but if I type a command line and type a string for file name
completion and hit the tab key, it will find items which don't begin
with that string, but do contain a substring. Then, more annoying, it
will give me the first file it found as my answer, which I do not
want.
I am using version 5.2 and I have the following in my .zshrc
...
autoload -U compinit
compinit -C
zstyle ':completion:*' completer _complete _match _approximate
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric
zstyle ':completion:*' squeeze-slashes true
HISTFILE="${ZDOTDIR:-$HOME}/.zhistory" # The path to the history
file.
HISTSIZE=10000 # The maximum number of events to
save in the internal history.
SAVEHIST=10000 # The maximum number of events to
save in the history file.
#
# Options
#
setopt BANG_HIST # Treat the '!' character specially
during expansion.
setopt EXTENDED_HISTORY # Write the history file in the
':start:elapsed;command' format.
setopt INC_APPEND_HISTORY # Write to the history file
immediately, not when the shell exits.
setopt SHARE_HISTORY # Share history between all sessions.
setopt HIST_EXPIRE_DUPS_FIRST # Expire a duplicate event first when
trimming history.
setopt HIST_IGNORE_DUPS # Do not record an event that was
just recorded again.
setopt HIST_IGNORE_ALL_DUPS # Delete an old recorded event if a
new event is a duplicate.
setopt HIST_FIND_NO_DUPS # Do not display a previously found
event.
setopt HIST_IGNORE_SPACE # Do not record an event starting
with a space.
setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to
the history file.
setopt HIST_VERIFY # Do not execute immediately upon
history expansion.
setopt HIST_BEEP # Beep when accessing non-existent
history.
source ~/zsh-history-substring-search.zsh
I am sure its me as I am rather new at this, so could someone tell me
what I am doing wrong here.
Thanks in advance for any suggestions.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@xxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author