Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: delay in exitting from zsh shell
- X-seq: zsh-users 16565
- From: Rommel Martinez <ebzzry@xxxxxxxxx>
- To: Eugene Dzhurinsky <jdevelop@xxxxxxxxx>
- Subject: Re: delay in exitting from zsh shell
- Date: Thu, 10 Nov 2011 09:14:02 +0800
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=amADzY0rdWzVxwntC4+ZIYaoXhgMOBRycom1dLTAnKg=; b=xmv2xvvnYIs8ZaA9p48sCrQSUHFgqjNpEst/SB1g9KK8Vxu5BhqHMicpHYzwgRfvSx Ws0lyfF1/t62naSWc775yxRUftK0lR1kiQaoQbztY0dHfLRw64OQSadTIZUxaEOdW9IQ 20e4riMT+ggLOpGEWTZqMCdtdeq9uP+EOcYO8=
- In-reply-to: <20111109222020.GB10120@devbox>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <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@xxxxxxxxx>:
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author