From: Sam Giraffe <sam@giraffetech.biz>
To: zsh-users@zsh.org
Subject: Trouble with history
Date: Sat, 31 Jan 2015 07:06:23 -0800 [thread overview]
Message-ID: <CAC97zZ8g85VMDPY_VxUX4AVJO-zBXfSfvdbQkEhV3JHhihx68A@mail.gmail.com> (raw)
Hi,
I am having trouble getting zsh backward history search to work from
the zsh history file.
When I type in Ctrl-R, the backward history search works only for the
history items that were typed during the life of the shell.
If I close the shell and open another shell, then the backward history
search resets itself.
My .zsh_history file is only 2,850 bytes, with 104 commands in it.
I need help in getting zsh to read the history file for backward history search.
Below is my zsh configuration file.
~> cat .zshrc
export PATH=/usr/local/bin:$PATH
autoload -Uz compinit && compinit
setopt cdablevars
setopt correct
setopt correctall
setopt autocd
setopt globdots
SAVEHIST=500
HISTFILE=~/.zsh_history
setopt inc_append_history
setopt share_history
setopt extendedglob
setopt notify
PROMPT='%~> '
alias -g ls='ls -GF'
source ~/.oh-my-zsh/plugins/git/git.plugin.zsh
Thank you!
next reply other threads:[~2015-01-31 15:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-31 15:06 Sam Giraffe [this message]
2015-01-31 18:33 ` Bart Schaefer
2015-02-01 6:58 ` Sam Giraffe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAC97zZ8g85VMDPY_VxUX4AVJO-zBXfSfvdbQkEhV3JHhihx68A@mail.gmail.com \
--to=sam@giraffetech.biz \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).