zsh-users
 help / color / mirror / code / Atom feed
From: Rommel Martinez <ebzzry@gmail.com>
To: Eugene Dzhurinsky <jdevelop@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: delay in exitting from zsh shell
Date: Thu, 10 Nov 2011 09:14:02 +0800	[thread overview]
Message-ID: <CADkz2MDwCrgdW=Jw58Nnx3nZLprUL4SToy9+hsCxBR-vUzJqqw@mail.gmail.com> (raw)
In-Reply-To: <20111109222020.GB10120@devbox>

You can have something like this:

function bye () {
    if (( ! $#BUFFER )); then
        SAVEHIST=0
        exit
    else
        zle delete-char-or-list
    fi
}

zle -N bye
bindkey "^D" bye


2011/11/10 Eugene Dzhurinsky <jdevelop@gmail.com>:
> Hello, I'm facing the strange issue - when I run zsh shell and eventually try
> to exit from it - it takes some time (3-5 seconds) between I hit Ctrl+D or
> type "exit" in shell prompt.
>
> After some experiments I realized that if I remove .histfile - then ZSH exists
> immediately, as supposed.
>
> My history file is ~350K of size and settings are:
>
> HISTFILE=~/.histfile
> HISTSIZE=10000
> SAVEHIST=10000
> setopt append_history
> setopt inc_append_history
> setopt histignorealldups
> setopt histignorespace
> setopt histreduceblanks
> setopt histsavenodups
> setopt sharehistory
>
> I checked performance of filesystem where the file is actually stored:
>
> dd if=/dev/zero of=test bs=1m count=10
> 10485760 bytes transferred in 0.065193 secs (160841962 bytes/sec)
>
> so it operates quite well.
>
> zsh 4.3.12 (amd64-portbld-freebsd9.0)
>
> What may be wrong with ZSH and how to fix it? Thanks!
>
> --
> Eugene N Dzhurinsky
>



-- 
Rommel M. Martinez
http://rmm.meta.ph


  reply	other threads:[~2011-11-10  1:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-09 22:20 Eugene Dzhurinsky
2011-11-10  1:14 ` Rommel Martinez [this message]
2011-11-10  6:56   ` Eugene Dzhurinsky
2011-11-10  3:51 ` Bart Schaefer
2011-11-10  7:19   ` Eugene Dzhurinsky
2011-11-10 10:10     ` Bart Schaefer
2011-11-10 10:15       ` Eugene Dzhurinsky
2011-11-10 10:46         ` Bart Schaefer
2011-11-10 10:58           ` Eugene Dzhurinsky

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='CADkz2MDwCrgdW=Jw58Nnx3nZLprUL4SToy9+hsCxBR-vUzJqqw@mail.gmail.com' \
    --to=ebzzry@gmail.com \
    --cc=jdevelop@gmail.com \
    --cc=zsh-users@zsh.org \
    /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).