* Help with history . . .
@ 2003-11-10 5:03 Peter Chen
2003-11-10 8:38 ` Dominic Mitchell
0 siblings, 1 reply; 5+ messages in thread
From: Peter Chen @ 2003-11-10 5:03 UTC (permalink / raw)
To: zsh-users
Dear zsh users,
I use the Ctrl-R command to search through the history of commands.
I've noticed that the history command in zsh by default only shows the
last dozen or so entries in the history file. When I use the Ctrl-R
command, the command only searches through the same last dozen or so
entries in the history file. Is there a way to get Ctrl-R and the
history command to show ALL the entries in the history file?
Thanks for any help.
Sincerely,
Peter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help with history . . .
2003-11-10 5:03 Help with history . . Peter Chen
@ 2003-11-10 8:38 ` Dominic Mitchell
2003-11-10 16:09 ` Peter Chen
0 siblings, 1 reply; 5+ messages in thread
From: Dominic Mitchell @ 2003-11-10 8:38 UTC (permalink / raw)
To: Peter Chen; +Cc: zsh-users
On Mon, Nov 10, 2003 at 12:03:40AM -0500, Peter Chen wrote:
> I use the Ctrl-R command to search through the history of commands.
> I've noticed that the history command in zsh by default only shows the
> last dozen or so entries in the history file. When I use the Ctrl-R
> command, the command only searches through the same last dozen or so
> entries in the history file. Is there a way to get Ctrl-R and the
> history command to show ALL the entries in the history file?
Set the HISTSIZE parameter to a larger value than it's default (32). I
have this in my .zshrc:
HISTSIZE=1024
-Dom
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help with history . . .
2003-11-10 8:38 ` Dominic Mitchell
@ 2003-11-10 16:09 ` Peter Chen
2003-11-10 16:14 ` Peter Stephenson
2003-11-10 16:21 ` Dominik Vogt
0 siblings, 2 replies; 5+ messages in thread
From: Peter Chen @ 2003-11-10 16:09 UTC (permalink / raw)
To: zsh-users
I have my HISTSIZE set to 3000 already. The problem is, when I type
"history", I can only see 16 entries despite the fact I have hundreds
of entries in my history file. Is there a way to get the "history"
command to display all the entries in the history file like the command
does in bash?
Thanks.
Sincerely,
Peter
On Nov 10, 2003, at 3:38 AM, Dominic Mitchell wrote:
> On Mon, Nov 10, 2003 at 12:03:40AM -0500, Peter Chen wrote:
>> I use the Ctrl-R command to search through the history of commands.
>> I've noticed that the history command in zsh by default only shows the
>> last dozen or so entries in the history file. When I use the Ctrl-R
>> command, the command only searches through the same last dozen or so
>> entries in the history file. Is there a way to get Ctrl-R and the
>> history command to show ALL the entries in the history file?
>
> Set the HISTSIZE parameter to a larger value than it's default (32). I
> have this in my .zshrc:
>
> HISTSIZE=1024
>
> -Dom
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help with history . . .
2003-11-10 16:09 ` Peter Chen
@ 2003-11-10 16:14 ` Peter Stephenson
2003-11-10 16:21 ` Dominik Vogt
1 sibling, 0 replies; 5+ messages in thread
From: Peter Stephenson @ 2003-11-10 16:14 UTC (permalink / raw)
To: Peter Chen; +Cc: zsh-users
Peter Chen wrote:
> I have my HISTSIZE set to 3000 already. The problem is, when I type
> "history", I can only see 16 entries despite the fact I have hundreds
> of entries in my history file. Is there a way to get the "history"
> command to display all the entries in the history file like the command
> does in bash?
3.19: How do I list all my history entries?
Tell zsh to start from entry 1: `history 1'. Those entries at the
start which are no longer in memory will be silently omitted.
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help with history . . .
2003-11-10 16:09 ` Peter Chen
2003-11-10 16:14 ` Peter Stephenson
@ 2003-11-10 16:21 ` Dominik Vogt
1 sibling, 0 replies; 5+ messages in thread
From: Dominik Vogt @ 2003-11-10 16:21 UTC (permalink / raw)
To: zsh-users
On Mon, Nov 10, 2003 at 11:09:03AM -0500, Peter Chen wrote:
> I have my HISTSIZE set to 3000 already. The problem is, when I type
> "history", I can only see 16 entries despite the fact I have hundreds
> of entries in my history file. Is there a way to get the "history"
> command to display all the entries in the history file like the command
> does in bash?
$ history -<n>
where <n> is the number of entries you want to see or
$ history 1
for all entries. See the documentation for the fc command in the
zshbuiltins man page for further details.
> On Nov 10, 2003, at 3:38 AM, Dominic Mitchell wrote:
>
> >On Mon, Nov 10, 2003 at 12:03:40AM -0500, Peter Chen wrote:
> >>I use the Ctrl-R command to search through the history of commands.
> >>I've noticed that the history command in zsh by default only shows the
> >>last dozen or so entries in the history file. When I use the Ctrl-R
> >>command, the command only searches through the same last dozen or so
> >>entries in the history file. Is there a way to get Ctrl-R and the
> >>history command to show ALL the entries in the history file?
> >
> >Set the HISTSIZE parameter to a larger value than it's default (32). I
> >have this in my .zshrc:
> >
> > HISTSIZE=1024
Ciao
Dominik ^_^ ^_^
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-11-10 16:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-10 5:03 Help with history . . Peter Chen
2003-11-10 8:38 ` Dominic Mitchell
2003-11-10 16:09 ` Peter Chen
2003-11-10 16:14 ` Peter Stephenson
2003-11-10 16:21 ` Dominik Vogt
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).