Fixes #300.
.zshrc can be found at ~/.zshrc when ZDOTDIR is not set.
If ZDOTDIR is set, .zshrc is in ${ZDOTDIR}/.zshrc.
Using parameter expansion, the hardcoded path can be replaced with
${ZDOTDIR:-$HOME}/.zshrc. That way, it'll use the value in
ZDOTDIR when set and the value in HOME when not.
This thus mirrors the usage of ZDOTDIR in zsh and makes the code
more flexible.
Fixes #300.
.zshrc
can be found at~/.zshrc
whenZDOTDIR
is not set. If ZDOTDIR is set, .zshrc is in${ZDOTDIR}/.zshrc
. Using parameter expansion, the hardcoded path can be replaced with${ZDOTDIR:-$HOME}/.zshrc
. That way, it'll use the value inZDOTDIR
when set and the value inHOME
when not. This thus mirrors the usage ofZDOTDIR
in zsh and makes the code more flexible.