From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19226 invoked from network); 8 Jun 2022 16:57:05 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Jun 2022 16:57:05 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1654707425; b=Q8XFT8FV6OZtHy4LwDF8RwCiyngeUgLoQ/niFQ8Zd0cPm7pk/71InAJ7hVkJLszW51OBPz5zoM W0pTfZ1KA0Wc+pxGs8v8blew1esSv9xM0bFvZN0qlzLooAGUWqoFO1/47OIqbkjP2zb+8F7+FE cZIutB1lX3aBIV8WJj0/7WHHLFvx/Gh/T71Z4nW9iY1n2KvqZlLMT2V9sJZo14Ii7hs64vgr3G MTW8eEXmLOYyKgbAZnCy4fmTVG3hW1Vw4AIeajiO5RFZ+SWxw7TSPIgMkiiwRia6NkXx8CaYDB 1wtblnHmVwb/Wm3Dvz/c3nYL3FiAYVpE96jSgphEDXCwSQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out1.migadu.com) smtp.remote-ip=91.121.223.63; dkim=pass header.d=theadamcooper.com header.s=key1 header.a=rsa-sha256; dmarc=pass header.from=theadamcooper.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1654707425; bh=vJYL+nQbBgSJz173KShi4RF6V84nU5Lv/Ili7jmpTBw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:DKIM-Signature:Date:DKIM-Signature; b=dEXd5xCsrDQNUWVa6fm18eQWlygNJGwGXkm20JGCUSXvc3IG/xZClUCxhda61IGg3Pr5djx9u6 9T5Lw+09xaNThM3trWGacpM8qiioVP01qRyrVylke+Imo9Jdh7fbIE6Bzy6dPM2ng9zUL9gsPX sBTH0ozp44odzLXGc2VX0NmDrB6PHUDYc+DEW+4CxA/2L+GPGwG9quFlu8Aoa6UalVNvSi3c21 JqrI2gACRyel6YwTbgoBSoPy35wk5l7hrftQMhf4K7W7ifVqLh1Q1xRd1KGQPuZNKdO0mMrb3J Vd8aprME/I/M58MdoLp5ONEJ5OmUuTr+jN5wJInvbJ9xnw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=vJYL+nQbBgSJz173KShi4RF6V84nU5Lv/Ili7jmpTBw=; b=pnAZQ0S5bh6fISz/dyWYhQtfsF BoivwrCA1e++SABBgpDc/wGwybeEPM5e46dvJfnhEAoAaknqrFU1JkFFaMiytCJg2sSGDho7kUatw PGyhj0BPW2LpUQ5HQ5pbEVRQzpRLJw/gVNaPmH7FSC/JRfbRBVUaDoo/Xm1W801WniONw04BmP4zO c9EXKo3UrAeL9TJ7VaruVp+PhoU+gXm7FXc+epFPtVzLWCtj4bYAhMSRoSIyKdG3BzCKuXqtA4Def SqHfr6E7OupoNdfdDCIt0iNdjAE4nmnTXszYcZXaqE+Ftpgc54SKoBGIIbizBI4CGKbKLpQ2/pePL 3ucDC6DA==; Received: from authenticated user by zero.zsh.org with local id 1nyyzR-000NJm-2t; Wed, 08 Jun 2022 16:57:05 +0000 Authentication-Results: zsh.org; iprev=pass (out1.migadu.com) smtp.remote-ip=91.121.223.63; dkim=pass header.d=theadamcooper.com header.s=key1 header.a=rsa-sha256; dmarc=pass header.from=theadamcooper.com; arc=none Received: from out1.migadu.com ([91.121.223.63]:41178) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1nyyxw-000MaR-AJ; Wed, 08 Jun 2022 16:55:32 +0000 Date: Wed, 8 Jun 2022 12:55:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=theadamcooper.com; s=key1; t=1654707331; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vJYL+nQbBgSJz173KShi4RF6V84nU5Lv/Ili7jmpTBw=; b=uc0IRYpIcn5y9OaxnKq5nSOu90XcU7wEzgQjlOez2OaNevWEwvUMUyGqHqawQNiCxWriEk SbxeaYoTLKsZ49cIHf/2ZmJC7JLAU26BU8aS4wk5UmiqO6u1gcJI/0SfuHJUDcUZeif2QD 1O/CSizZHLkkbwpyN3dnBxAxK+6ZNbDl0u0hbOh9ht3TTHPRT/TIq/5Gzse7wH0w2VPKAO eUcipzphqvyclJkR5a2A0FatbbWBpDH/oPFG2Eh+0kMIqEyqk1QwRH5Hf2vwn0Ez0fI05W lUO12cwBn0+4bXGRyM8d3ZB/qWP9Xl1B3Ro/TCCQlikSHBhNa9qFw6XgLAV3ug== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Adam Cooper To: Zsh Users Subject: Re: Weird history behavior Message-ID: <20220608165528.suhoqmhgo3qbkhq7@marcos.localdomain> Mail-Followup-To: Zsh Users References: <20220607192350.znejys3gs4kakjw7@marcos.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theadamcooper.com X-Seq: 27839 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Jun 07 10:02PM, Bart Schaefer wrote: >On Tue, Jun 7, 2022 at 12:24 PM Adam Cooper wrote: >> >> After installing xmonad on an Arch Linux system, my zsh history has begun to misbehave. HISTFILE is read from .zshenv after logging into the console, but once I start xmonad and a terminal, HISTFILE is empty. >[...] >> Here is a link to my .zshenv: https://git.theadamcooper.com/adam/dotfiles/src/branch/master/arch/zsh/.zshenv > >Well, there's this: >export ZDOTDIR="$XDG_CONFIG_HOME/zsh" > >Once that's in the environment, $HOME/.zshenv isn't going to be read >any more, rather, the dot-files in $ZDOTDIR are going to be read >instead ... so you should look there. My reading of the docs tells me that (in the absence of /etc/zsh/zshenv) ~/.zshenv is read first, and if ZDOTDIR is set there, the remaining configuration files will be read from ZDOTDIR. (Moving .zshenv into ZDOTDIR resulted in zsh displaying a menu with options for configuring zsh from the start.) Evidence-wise, when I first log in to tty1, HISTFILE is set, as is HISTSIZE (conspicuously set to 9998), so I conclude .zshenv is being read. When I then run startx to enter xmonad, HISTFILE is unset, while HISTSIZE remains set. The only other configuration file, ZDOTDIR/.zshrc, is read correctly.