Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Please implement auto-handling of ${HOME}/.zsh/
- X-seq: zsh-users 17716
- From: Larry Schrof <larrys@xxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Please implement auto-handling of ${HOME}/.zsh/
- Date: Wed, 20 Mar 2013 19:16:39 +0000
- Accept-language: en-US
- 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=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Thread-index: AQHOJZ9yhXEI9qZ+80miPhUiU6iQHA==
- Thread-topic: Please implement auto-handling of ${HOME}/.zsh/
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=${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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author