diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2004-05-20 22:23:05 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2004-05-20 22:23:05 +0000 |
commit | 690866621a86239f0f6f5fb745c1204d2b5a31a9 (patch) | |
tree | 2cc8416a03d9446558a1aac8de24cccb5067978e /Doc/Zsh | |
parent | e8eca2ee4b2c46ea6eb047e54fa4c7dcb1869fa1 (diff) | |
download | zsh-690866621a86239f0f6f5fb745c1204d2b5a31a9.tar.gz zsh-690866621a86239f0f6f5fb745c1204d2b5a31a9.tar.xz zsh-690866621a86239f0f6f5fb745c1204d2b5a31a9.zip |
Document the new options to "fc".
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/builtins.yo | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 363115297..f9d1a5de1 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -397,6 +397,8 @@ findex(fc) cindex(history, editing) cindex(editing history) xitem(tt(fc) [ tt(-e) var(ename) ] [ tt(-nlrdDfEim) ] [ var(old)tt(=)var(new) ... ] [ var(first) [ var(last) ] ]) +xitem(tt(fc) tt(-p) [ var(filename) [ var(histsize) [ var(savehistsize) ] ] ]) +xitem(tt(fc) tt(-P)) item(tt(fc) tt(-ARWI) [ var(filename) ])( Select a range of commands from var(first) to var(last) from the history list. @@ -433,6 +435,23 @@ Adding the tt(-i) flag causes the dates to be printed in ISO8601 `var(yyyy)tt(-)var(mm)tt(-)var(dd)' format. With the tt(-D) flag, tt(fc) prints elapsed times. +cindex(history, stack) +cindex(stack, history) + +`tt(fc -p)' pushes the current history list onto a stack and switches to a +new history list. If no arguments are specified, the history list is +empty, tt($HISTFILE) is unset, and tt($HISTSIZE) & tt($SAVEHIST) are set to +their default values. If one argument is given, tt($HISTFILE) is set to +the filename, tt($HISTSIZE) & tt($SAVEHIST) are left unchanged, and the +history file is read in (if it exists) to initialize the new history list. +If a second argument is specified, tt($HISTSIZE) & tt($SAVEHIST) are +instead set to the specified numeric value. Finally, if a third argument +is specified, tt($SAVEHIST) is set to a separate value from tt($HISTSIZE). + +`tt(fc -P)' pops the history list back to an older list saved by `tt(fc -p)'. +The current list is saved to its tt($HISTFILE) before it is destroyed (as long +as tt($HISTFILE) and tt($SAVEHIST) are set appropriately, of course). + cindex(history, file) cindex(file, history) `tt(fc -R)' reads the history from the given file, |