zsh-users
 help / color / mirror / code / Atom feed
* Ability to set HISTNO to a certain position from within zshrc
@ 2003-09-11  6:21 Felix Rosencrantz
  2003-09-11 14:48 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Felix Rosencrantz @ 2003-09-11  6:21 UTC (permalink / raw)
  To: zsh-users

In certain situations when starting a new shell, I have an automated way to
determine a likely set of commands I will need to run and the order.   So, I
prime my history with these commands from my .zshrc using "print -s".

Now I find that I would also like to have my command line primed with one of
these lines, such that HISTNO is pointing to that line in the primed command
history.  I want to be able to use accept-line-and-down-history (or similar
widget) to allow me to quickly run through this list of commands if everything
goes smoothly.

Is there a way to start from a point in the primed history from my .zshrc?  It
seems like you have to be within a zle widget to modify HISTNO.  (HISTNO is
read only, but can be modified indirectly through zle widgets that change the
history position.)
 
-FR.



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-09-25  6:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-11  6:21 Ability to set HISTNO to a certain position from within zshrc Felix Rosencrantz
2003-09-11 14:48 ` Bart Schaefer
2003-09-13 22:07   ` Felix Rosencrantz
2003-09-13 23:19     ` Bart Schaefer
2003-09-25  6:21       ` Felix Rosencrantz

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).