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 8020 invoked from network); 1 Sep 2021 22:13:57 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Sep 2021 22:13:57 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630534437; b=fq8MBLEEh5vY1vlW61y6B2VxElO1ChaXQ8KpfqLsryghqfLMu8wChO0/K7J8T3oPVFFEljw2bp vPx125vobxwxWsB0BId89jZrrzhcnpsiiz5iNPp1qYaD5U/TyKWDMZb7MHDJ1qLLlwOR0CR//o SNww8+VbMfm9cAg+shHu2UH8dxyLq3v2JQVO2vJ17f9Z/Z1uN9q85iZTstvV63Ih4Y/LnUZ6Hh ti7ShwaLitZ5j1qY/fG7e4JSsW9nDFMQW9yN5qsw/GIn/RobFVlu4WO9e79vB2JQTYUY2md08M Bx/ke0i00CgrTQ0YEHF5oOGGW6p77JHrigI5C1eFcGdW1g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1630534437; bh=ES05tLtUyctR7GgdAIizazCZEcxLwl+SwOVzPxcxbYg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:To:From:Date:MIME-Version:DKIM-Signature:DKIM-Signature; b=AudivWLVkAVeubXDHBxmcvFSGOcExpt52fQ3e3sfVr1dpCuXL7S6AbFt3lRfxSCqJ/F4d3Z/yL 5rIqO+6+OGzStZKK1TnYLyUtAMH6SRGdvZANPxQZfQtS4LloJ3osCWHxT5xkhdillJQ3K/ggga hD+7ycjpoDJiVgBl73SmFKQFc+7dK8stH9zf/nrj782IUPuYnpi8fmn8BmV/KlB/f6uuWGUiv0 XwbSrDkjKg+SLz5QgbbQX/pCpgSyJfKBN3pkXF3k1YPl9n5PDow19pFDJzGV59vSthkHBt85Qr K+OhrElIB8viG+SfvK9UqMj5Bc3i2VQBV+Rm82D3wHdjZw==; 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:Message-ID:References:In-Reply-To:Subject:To:From:Date: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=yZH3U70fIcmW4bHDTD8Q2idqo1moJsecyN87HmG5I1E=; b=kvlimGLqQQcUzy71/aj10gviBy BOx+XAkKVRO5SPdW5jId9h9SsPxzU1k7807hm2pQIhsbJA3quLA4LQUC5zc45XUpVhlFNBC86qk4K Q2K/XBCiDnhUlubizQvi1CNbDx9fG5mHZVBLROxUg8LlBHCliTu5dhRxAZ6XSktlNWBf5jx8YrPdS P8ePYkmWfYxovkZ5tf5Jk8YtQSUGa/dlrXEdMz7tWYYDWlEOGUFwksAPEfGojAorMH76a8sFD2Mjo ecu95furv6EaV1w7MC2t11eUk71ts+W5ZiiwsgrCpUuHs8PpoUSsapW5Q59fjfiy6TKzGHBtMShAB ljpkRc6g==; Received: from authenticated user by zero.zsh.org with local id 1mLYUX-000Lqs-OP; Wed, 01 Sep 2021 22:13:57 +0000 Authentication-Results: zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none Received: from email.dondley.com ([34.203.132.18]:52076) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mLYTk-000L1n-2e; Wed, 01 Sep 2021 22:13:08 +0000 Received: from email.dondley.com (email.dondley.com [34.203.132.18]) by email.dondley.com (Postfix) with ESMTPSA id AD85F20905 for ; Wed, 1 Sep 2021 18:13:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dondley.com; s=default; t=1630534386; bh=ES05tLtUyctR7GgdAIizazCZEcxLwl+SwOVzPxcxbYg=; h=Date:From:To:Subject:In-Reply-To:References:From; b=lXIjz8x/nVQxQO96rpqAowPCbOV5hCEEmJS4MfvRPTdhm+8u8L2Y0LIW4XXmveRxz Kje4CFO/iSH8ztlf3qSpnKqfL4bH5TTshiTR9+ei1X1ymS19Ty00JY1FpDg9/5Bnko hbjUFTfDkEmj5zqYzRakaJXuV2OXgBi/73922jJeUxACPFx5AsCx8XkqsdAzLHfcWV cMR6CEoO1/RyQtCJS/jQBXhyHtf1HyiP/1YMNZLFh4kB2qUIQiB6qJUmKJWXkOimA1 Y5G1X6LbSbCjsitfMFZWrEYh6vDw02LAGBvjtmgFyxz0svollg7h3MDSbgMEpz5q0h JmhHpikpoISbA== MIME-Version: 1.0 Date: Wed, 01 Sep 2021 18:13:05 -0400 From: Steve Dondley To: zsh-users@zsh.org Subject: Re: Best practices for managing aliases in ohmyzsh? In-Reply-To: References: <41fa241f119fdb9b8598293aad345823@dondley.com> User-Agent: Dondley Message-ID: <88218af7fcff32d401ff8c04bdbd6c22@dondley.com> X-Sender: s@dondley.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Seq: 27070 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: > The way this works is that if there's a "${HOME}/.myzshrc.local.zsh" > it is sourced and does some machine-specific adjustments that are not > contained in the general .zshrc file. That local script can also set > local_plugins to a list with plugins that I only want/need on that > machine (e.g., a plugin to work with the SLURM job scheduler on an HPC > system). I am doing something similar but with simple conditionals in .zshrc to test which machine I'm on and load the appropriate plugins. So far my config is simple enough that I can get away with it but I can see where if it grows in complexity, your method is a lot cleaner. I'll definitely keep your setup in mind and refer to it later is I my config gets unmanageable. Thanks!