* zsh x bash: history file
@ 2003-04-14 0:41 Luciano ES
2003-04-14 7:10 ` Thorsten Kampe
0 siblings, 1 reply; 2+ messages in thread
From: Luciano ES @ 2003-04-14 0:41 UTC (permalink / raw)
To: zsh-users
I've looked almost everywhere and can't find the use of a history file in
ZSH. Is there such thing?
I also notice that some bash scripts won't run in zsh. There must be fatal
differences in their syntaxes. Do you know if they are documented anywhere?
Thanks,
--
Luciano Espirito Santo
Santos, SP - Brasil
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: zsh x bash: history file
2003-04-14 0:41 zsh x bash: history file Luciano ES
@ 2003-04-14 7:10 ` Thorsten Kampe
0 siblings, 0 replies; 2+ messages in thread
From: Thorsten Kampe @ 2003-04-14 7:10 UTC (permalink / raw)
To: zsh-users
* Luciano ES (03-04-14 02:41 +0100)
> I've looked almost everywhere and can't find the use of a history file in
> ZSH. Is there such thing?
Well no, sorry. ;-)
HISTFILE=$ZDOTDIR/.zhistory # History settings
HISTSIZE=1000
SAVEHIST=1000 # Default: 200
setopt appendhistory # multiple zsh's all append to same history file (rather than last
# overwrites) SET
unsetopt banghist # Perform textual history expansion, csh-style, treating '!' specially SET
unsetopt cshjunkiehistory # A history reference without an event specifier will always refer to
# the previous command. Without this option, such a history reference
# refers to the same event as the previous history reference, defaulting
# to the previous command UNSET
setopt extendedhistory # Save each command's beginning timestamp and the duration (in seconds)
# to the history file UNSET
unsetopt histallowclobber # Add '|' to output redirections in the history. This allows history
# references to clobber files even when CLOBBER is unset UNSET
unsetopt histbeep # Beep when attempt to access a history entry which isn't there SET
setopt histexpiredupsfirst # If the internal history needs to be trimmed to add the current command
# line, setting this option will cause the oldest history event that has
# a duplicate to be lost before losing a unique event from the list UNSET
unsetopt histfindnodups # When searching for history entries in the line editor, do not display
# duplicates of a line previously found, even if the duplicates are not
# contiguous UNSET
unsetopt histignorealldups # If a new command line being added to the history list duplicates an
# older one, the older command is removed from the list (even if it is
# not the previous event) UNSET
setopt histignoredups # Do not enter command lines into the history list if they are
# duplicates of the previous event UNSET
unsetopt histignorespace # Remove command lines from the history list when the first character on
# the line is a space, or when one of the expanded aliases contains a
# leading space UNSET
unsetopt histnofunctions # Remove function definitions from the history list UNSET
unsetopt histnostore # Remove the history (fc -l) command from the history list when invoked UNSET
setopt histreduceblanks # Remove superfluous blanks from each command line being added to the
# history list UNSET
unsetopt histsavenodups # When writing out the history file, older commands that duplicate newer
# ones are omitted UNSET
setopt histverify # Don't execute a line with history expansion directly; reload the line
# into the editing buffer UNSET
setopt incappendhistory # New history lines are added to the $HISTFILE incrementally (as soon as
# they are entered), rather than waiting until the shell is killed UNSET
setopt sharehistory # Import new commands from the history file and append typed commands to
# the history file UNSET
Unfortunately zsh is missing solmething like bash's "histignore".
> I also notice that some bash scripts won't run in zsh. There must be fatal
> differences in their syntaxes.
zsh can emulate certain other shells sh, ksh, csh. Many people have
problems because of "shwordsplit".
Thorsten
--
Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
Content-Transfer-Warning: message contains innuendos not suited for
children under the age of 18
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-14 7:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-14 0:41 zsh x bash: history file Luciano ES
2003-04-14 7:10 ` Thorsten Kampe
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).