Looking to make my ~
a cleaner place, I would like to move as much user configuration files into $XDG_CONFIG_HOME
, which is ~/.config
by default.
(为了使~
变得更干净,我想将尽可能多的用户配置文件移至$XDG_CONFIG_HOME
,默认情况下为~/.config
。)
So I would like to store all my zsh user files in $XDG_CONFIG_HOME/zsh/
. (所以我想将我所有的zsh用户文件存储在$XDG_CONFIG_HOME/zsh/
。)
So far already have this: (到目前为止已经有了:)
% ls $XDG_CONFIG_HOME/zsh/
histfile zsh_cache zshrc
Easy, you just have to fill your ~/.zshrc
.
(容易,您只需要填写~/.zshrc
。)
Now the trickiest part seems to make zsh read directly $XDG_CONFIG_HOME/zsh/zshrc without sourcing it from ~/.zshrc. (现在,最棘手的部分似乎使zsh直接读取$ XDG_CONFIG_HOME / zsh / zshrc,而无需从?/ .zshrc采购它。)
How would you proceed? (您将如何进行?)
ask by psychoslave translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…