zsh-workers
 help / color / mirror / code / Atom feed
From: Hrvoje Niksic <hniksic@iskon.hr>
To: zsh-workers@sunsite.auc.dk
Subject: Bindings in .zshrc
Date: 04 Jan 2000 13:12:07 +0100	[thread overview]
Message-ID: <9t9bt72doiw.fsf@mraz.iskon.hr> (raw)

I want M-p and M-n bound to history-beginning-search-backward and
history-beginning-search-forward respectively, but it doesn't seem to
work in recent versions of zsh.

Zsh version is 3.1.6-pws-12 from Debian potato.  A detailed recipe to
repeat the problem follows.

$ mkdir tst
$ cat > tst/.zshrc
echo start
bindkey '\ep' history-beginning-search-backward
bindkey '\en' history-beginning-search-forward
echo end
^D
$ ZDOTDIR=~/tst zsh
start
end
mraz% bindkey -e        # new zsh, use Emacs-style bindings
mraz% bindkey
...
"^[n" history-search-forward
"^[p" history-search-backward
...

Obviously, the bindings didn't take effect, although .zshrc is read.
If I type it manually, it works:

mraz% bindkey '\ep' history-beginning-search-backward
mraz% bindkey '\en' history-beginning-search-forward
mraz% bindkey 
...
"^[n" history-beginning-search-forward
"^[p" history-beginning-search-backward
...


             reply	other threads:[~2000-01-04 12:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-04 12:12 Hrvoje Niksic [this message]
2000-01-04 15:07 ` Zefram
2000-01-04 15:23   ` Hrvoje Niksic

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=9t9bt72doiw.fsf@mraz.iskon.hr \
    --to=hniksic@iskon.hr \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).