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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16136 invoked from network); 1 Sep 2021 18:35:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Sep 2021 18:35:40 -0000 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:Content-Transfer-Encoding: Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=+afHc8Z7sFqVARycLC+HAvPAeQAileKF3aW4kww2dLw=; b=oNCqzLHEEq4tLNn6uU3MGPZ9D6 /fJGjxjxeOj5WdaCIA+pedim7ew5qCUAHdsZbMIzQR1Nb57NaW5aMI739DeYFkIruEwWxz/UaY4uu L8/TWkK/9XjsL423YRI9UZcFC/s9KrjLjloE5ka4ZpPUFzqWl8f0A46ASgBQGqB4ODBOcOdv6ZDsp r4OcgOR6s1l7N6cn1YwkoSn5WeRNsaoaGSm2cH+h91HI3y4ZgpKERVbmzGR4bQD5B+L71byPUzNLE zPlVv8z/JdBTHvitQmY+Gied4aFJsHy9lbUx431fJ0OdegbqjcCFv2wUxpx7kxKlWFufu2NJjbCQX ibzwD5Ww==; Received: from authenticated user by zero.zsh.org with local id 1mLV5H-000Hdr-Cw; Wed, 01 Sep 2021 18:35:39 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mLV4W-000Gtg-V7; Wed, 01 Sep 2021 18:34:53 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id C869127C0054; Wed, 1 Sep 2021 14:34:51 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Wed, 01 Sep 2021 14:34:51 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvfedguddviecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepnfgr fihrvghntggvpgggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenuc ggtffrrghtthgvrhhnpeeufeehleeikeeijedtgffgteehheeivddtiedukeejvdejgfej udefkeevlefggeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehlrghrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddu hedukeejjedtgedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrg hsthhmrghilhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2BBA3A002E4; Wed, 1 Sep 2021 14:34:51 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1126-g6962059b07-fm-20210901.001-g6962059b Mime-Version: 1.0 Message-Id: <35e7c1bf-fb70-42c5-80aa-5cabb7987637@www.fastmail.com> In-Reply-To: <521bbe94-d8a8-a85f-9abc-5b10e97c7407@eastlink.ca> References: <41fa241f119fdb9b8598293aad345823@dondley.com> <776abe09c579095258b2eef28a7ad5ca@dondley.com> <1ee1545904fdc1b5f473460cddfe5000@dondley.com> <29064969-76d0-48a1-cb4a-719a9acaab29@eastlink.ca> <00160177-798f-4dcc-a4ef-da6c3663883c@www.fastmail.com> <521bbe94-d8a8-a85f-9abc-5b10e97c7407@eastlink.ca> Date: Wed, 01 Sep 2021 14:34:29 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Ray Andrews" Cc: zsh-users@zsh.org Subject: Re: Best practices for managing aliases in ohmyzsh? Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 27055 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 Wed, Sep 1, 2021, at 12:20 PM, Ray Andrews wrote: > On 2021-08-31 8:27 p.m., Lawrence Vel=C3=A1zquez wrote: > >> If a function is declared (yes I know, wrong word but you get my > >> meaning) then the function enters memory, otherwise it's > >> interpret-and-forget until next time, no? > > I don't really know what you mean here. > When we source a function it's there in memory for next time, no? Singling out functions obscures what is going on. All changes to the sourcing shell's state persist, not just function definitions. > Otherwise a script is freshly read each time it is sourced.=C2=A0 I"m = pretty=20 > sure about this. The file is always read each time it is sourced (setting aside .zwc files and what not). It does not matter whether it defines functions or not. (I really hope you are not conflating sourced files with autoloaded functions.) --=20 vq