zsh-users
 help / color / mirror / code / Atom feed
From: Thorsten Kampe <thorsten@thorstenkampe.de>
To: zsh-users@sunsite.dk
Subject: Re: zsh x bash: history file
Date: Mon, 14 Apr 2003 09:10:28 +0200	[thread overview]
Message-ID: <1sxlhn1zfentm$.dlg@thorstenkampe.de> (raw)
In-Reply-To: <200304132141080670.002AABB4@127.0.0.1>

* 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


      reply	other threads:[~2003-04-14  7:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-14  0:41 Luciano ES
2003-04-14  7:10 ` Thorsten Kampe [this message]

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='1sxlhn1zfentm$.dlg@thorstenkampe.de' \
    --to=thorsten@thorstenkampe.de \
    --cc=zsh-users@sunsite.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).