|
|
|
|
|
by dbbolton
3708 days ago
|
|
One of the best zsh tweaks I've done was setting ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
in `/etc/zshrc`, then moving all miscellaneous files to the same place: # ~/.config/zsh/.zshenv
export HISTFILE="${ZDOTDIR}/history"
# ~/.config/.zshrc
compinit -d ${ZDOTDIR}/zcompdump
zstyle ':completion:*' cache-path "${ZDOTDIR}/cache"
## separate files for easier and quicker editing:
for file in $ext_files; do
[[ -f ${ZDOTDIR}/${file} ]] && source ${ZDOTDIR}/${file}
done
This method removed quite a few files (history, compdump, cache, zkbd, zshrc, zshenv, zprofile, zlogin, etc.) from my home dir.I'm sure bash has something similar, but like you said, it would be nice if programs didn't junk up $HOME by default. |
|