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=-4.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20857 invoked from network); 1 Sep 2021 19:19:51 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Sep 2021 19:19:51 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630523991; b=JFbr71DdlWu6S5wbkS8m/D4ZNaUgLmB+fI37Qrv9fTlEV8xVFlBS8pI4M8rbLDMS3PnqFDDvrr PVvY4SwQDqIdQOCnaliUDVSsf3/vssX6RAN+mwFipFQLuLMhjEWgX25XNPVD5O9DEwTshK1jJK o4aopQuOJ+jC/rJ2szqcaODsoHrx64i+iBKq2MoJSlzj66CScWKYaHTVO9t5RchCye7Uh0MsSa /+WkA23DtgNmXa72mkMuRk0GvWvvXefV9cQgIyLBm0eVJ6pB/gfrxXhYeeM0qVpnxsrviJtOBa 4P+3OgORFN1x68kGKkuj7Wr8e43n2O9NRzDRkv0EOZRBMQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1630523991; bh=JoSlhk4jLxQHAlKO28CogTBMe3iKnPaoX5iY5rUVB5A=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=ncZvdbV+J7of/5lGFqoI6mtE2v5+wzBrJpMGpYiCdqzO2pKrG7dVJMwQkIyXKsX8pmYSefMs6u 7ugNXb/L7jHqv5gWA9e+/ntEIv7AS5eXDiL+isuv9aGBw7w0wWwdXNQvq75mtqJQ0twBKOz7OC xbTc8zFTE6tnfLEjtfTZ3HTnNovN2PDUSkZjl/o2mBSnzy6Qxq6oNJIDcsh9UVlsN8zU5k87aX 7WPnD/MxYX1nk+EMGhNkvk2itP/Hzo0YanGP9LFDfscAs7KgXBB8YLjpz/A1w/EW/W+Yph4CS6 gBK5qtGPHbNEf/gN7GGbt6jYDOPBepsA16EfChn2CDWGug==; 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:In-reply-to:MIME-version:Date:Message-id:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=PTmnve11kjL0UVCMVau4clQTcwCflXvOd4GSR19h9i0=; b=c97Lg3YuHPmhrqpuqAxY2eKV5F DuKlUeMK/mDoy8+3FOLSEJj61ODx4zJQQDx0XWCf3Zvc/dzRZDfPAhT83Jl/DULOqe/T+naR2X4Ng EvJJHTguFPYayasirOaQVnY83un89JkMKxFtQSQ7V2rx9GyYQcZVjOb6ZojOzerfG/AFpL1cNmzSp vgDe+lwVDJ1m1r4nWlb3gr2T2ArsGqyJ+oooR+9Ei6TCUIdcEuCTmH8QA1qkqD457IVkjGkftwrIO dTM18iHGyEMkh8VcGnVWLF4/KmtJY79GKeGBCOZn2PAAc2jiHm65vR3MDBH53oTY9z/0+ZzmROSGV 6qWEEgDw==; Received: from authenticated user by zero.zsh.org with local id 1mLVm3-000OX2-0F; Wed, 01 Sep 2021 19:19:51 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:56807) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1mLVlJ-000No0-Qc; Wed, 01 Sep 2021 19:19:06 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QYR00F0UPSQTX31@mta04.eastlink.ca> for zsh-users@zsh.org; Wed, 01 Sep 2021 16:19:04 -0300 (ADT) Received: from [192.168.0.2] ([24.207.90.194]) by Eastlink with ESMTP id LVlIm71DJVz4DLVlImqtc3; Wed, 01 Sep 2021 16:19:04 -0300 X-Authority-Analysis: v=2.4 cv=c59u/Txl c=1 sm=1 tr=0 ts=612fd228 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=Djhpf32Fmgr2YwlC24cA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvfedgudefhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeekvdeuuefffefhvdeuieetffdvtddvjeegueejkeeiudehieetieehgeetvdfhfeenucfkphepvdegrddvtdejrdeltddrudelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrledtrdduleegpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: Best practices for managing aliases in ohmyzsh? To: zsh-users@zsh.org 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> <35e7c1bf-fb70-42c5-80aa-5cabb7987637@www.fastmail.com> From: Ray Andrews Message-id: <6352cc90-d27c-ae45-202f-d3d1b964796a@eastlink.ca> Date: Wed, 1 Sep 2021 12:19:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-version: 1.0 In-reply-to: <35e7c1bf-fb70-42c5-80aa-5cabb7987637@www.fastmail.com> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 27058 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 2021-09-01 11:34 a.m., Lawrence Velázquez wrote: > 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 think I'm clear about this.  I'm just saying that once a function has been sourced, it's in memory.  As was pointed out earlier, if you just run scripts you keep your memory resources a bit trimmer at the expense of a micro second here and there.  Anyway the panic is over -- a line of code is a line of code, function, sourced or executable, all the same.  Functions: same environment.  Sourced or executable: fresh environment.