From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4107 invoked by alias); 20 Mar 2013 19:44:15 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17716 Received: (qmail 15067 invoked from network); 20 Mar 2013 19:44:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at spf-00082601.pphosted.com designates 67.231.153.30 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=from : to : subject : date : message-id : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=hjIylcuGaVJKURkX/PkExeeWl6Koakd21IarF3uXOx0=; b=GUWaWyrLk6jRCjbC7mu/VSkNjGP88rtMVMiD6535m4a7cYCj4PZlx9CADJ+fj/ACKAJj ZpxsYVupqbciR0QNZAS4g6zp+4Fd2I2oeO+FIfnQLgLkmD1L/sqHq+F2Jqfj5y8keE62 6x8pDFIOCZhViq6pIKZGdmcj1xYdP0+OL3k= From: Larry Schrof To: "zsh-users@zsh.org" Subject: Please implement auto-handling of ${HOME}/.zsh/ Thread-Topic: Please implement auto-handling of ${HOME}/.zsh/ Thread-Index: AQHOJZ9yhXEI9qZ+80miPhUiU6iQHA== Date: Wed, 20 Mar 2013 19:16:39 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.16.4] Content-Type: text/plain; charset="us-ascii" Content-ID: <52043E5CC7EEC54FB4FD8850B9183B55@fb.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Spam-Reason: safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8626,1.0.431,0.0.0000 definitions=2013-03-20_06:2013-03-20,2013-03-20,1970-01-01 signatures=0 I have been dying for this for many years. I have a ton of zsh configs, so I like to organize them in ~/.zsh/ , but here's the problem. First, I have to create a symlink ~/.zshenv and point it to ~/.zsh/.zshenv Then, as the first thing to do in ~/.zsh/.zshenv, I have to do: export ZDOTDIR=3D${HOME}/.zsh This is janky and is messier than it needs to be. It would be awesome if something like the following happened. Forgive me if the implementation is flawed; just note the spirit of my suggestion. - Before zsh begins to process the first user-based config file (I believe ~/.zshenv), look for the existence of ~/.zsh/ (a directory). - If this directory does not exist, proceed normally. (Start reading ~/.zshenv) - If this directory DOES exist: ---> Automatically set ZDOTDIR to ${HOME}/.zsh/ ---> Ignore any ~/.zsh* files (If the user is using ~/.zsh/ it's their job to understand that ~/.zsh* files won't be read.) --> Begin reading ${HOME}/.zsh/.zshenv What's the likelihood this would be implemented in the near future?