Adjust instruction for setting custom $ZDOTDIR
Adjust instruction for setting custom `$ZDOTDIR`. This addresses 2 potential issues: - Check for the presence of `$XDG_CONFIG_HOME/zsh` before assigning it to `$ZDOTDIR` instead of blindly assigning - Avoid recursion in zsh variable assignment stack that might occasionally result in messages like: ``` zsh: job table full or recursion limit exceeded ```
This commit is contained in:
parent
c0cdc12708
commit
ac356c8cf6
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ version is **4.3.11**.
|
|||
|
||||
```sh
|
||||
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:=$HOME/.config}"
|
||||
export ZDOTDIR="${ZDOTDIR:=$XDG_CONFIG_HOME/zsh}"
|
||||
[[ -d $XDG_CONFIG_HOME/zsh ]] && export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||
source "$ZDOTDIR/.zshenv"
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue