Zsh Mailing List Archive
Messages sorted by:
Re: Issue with history
- X-seq: zsh-workers 30357
- From: François <aifsair@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Issue with history
- Date: Thu, 15 Mar 2012 11:13:25 +0100
- Cc: zsh-workers@xxxxxxx, aifsair+zsh@xxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=182Vx95E8x1IJ+ZdVRyVxFXVdxISIjFJOW/MI0xvdyE=; b=CZo6VTZ7R+bMsEI1GZ/STzJ3O/7kAyKJ2nPV0DLNoX9mQVgl9pr9kLKnkzXzB5GPlN ATIN2SdnDoRKKYTLCwF/kD4Vl+6VUv2tM7a3bTTXuMeUPxE5F2WRa+TLcVomzjFoHaGR QC9yxfWWx1PL9QymQBquNVv1uDNr21BIiaq13U9nI7fYyvV+sA5GYf8lYqiE+YXJVEEX uZB1oT4DszCu1releMQ1XcM591LuqBCSbxfH4mET5qazkK9QBoBd4soPCi36a/imbMBF +NrxvhNu3547LPGVAvuptKiE3+sFm/jKfIOAfKyGUjFpGzOEW5gqqIRfzTOTdJ+VTSrF kgjA==
- In-reply-to: <CAH+w=7You6CxtLnopg1GacermtRrd4ArYKXgmrFX4GyOEiz1KA@mail.gmail.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <160F1AB7-045E-4DF7-81FE-75D9BAC85523@gmail.com> <120308102812.ZM14534@torch.brasslantern.com> <3EA90EE7-0E80-4F61-8349-CB5C914D432E@gmail.com> <CAH+w=7YZBrosAouDRYkyLApWn7homL=76ZQpU-6PQO=KugcFAw@mail.gmail.com> <89C1220D-AAB7-4B84-9B8C-0F2F10749CDB@gmail.com> <CAH+w=7You6CxtLnopg1GacermtRrd4ArYKXgmrFX4GyOEiz1KA@mail.gmail.com>
thanks for your response.
I've just rebooted, and `history 1` function gives me an arbitrary command, which I hit yesterday evening.
If I hit `history 1` again, the cursors switches to the next function.
Something else I have noticed, if I edit the history file, I get the
: 1331806147:0;history 0
notation. But it seems that only the history of current instance(s) has such additional informations.
And the zsh -x -i or -l does not give a lot of differences as far as I understand.
I'll let you know if I find more information on that.
I think I'll create a h() function which will just call grep on my history file :p
Le 15 mars 2012 à 01:58, Bart Schaefer a écrit :
> On Wed, Mar 14, 2012 at 2:59 AM, François <aifsair@xxxxxxxxx> wrote:
>> There is still a big change that appeared in my .zsh_history:
>> vim .emacs
>> find . -name '*.c'
>> open -a emacs Downloads/ddns-1.0/message.c
> So, where did you execute those particular commands?
> It begins to appear that you (unintentionally) have history configured
> differently for login shells as compared to other interactive shells.
> For example, /etc/zlogin may be resetting some history options and
> thereby replacing the ones that you have in your .zshrc.
> Try running
> zsh -x -i 2> /tmp/zshxi
> zsh -x -l 2> /tmp/zshxl
> diff -u /tmp/zshxi /tmp/zshxl | more
> then search through the diff for unexpected setopt commands, etc.
Messages sorted by: