Skip to content

Commit 4d08123

Browse files
authored
feat(install): respect ZDOTDIR for zsh config detection (anomalyco#8511)
Signed-off-by: sami <samiulsami7786@gmail.com>
1 parent 7d3c7a9 commit 4d08123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ case $current_shell in
369369
config_files="$HOME/.config/fish/config.fish"
370370
;;
371371
zsh)
372-
config_files="$HOME/.zshrc $HOME/.zshenv $XDG_CONFIG_HOME/zsh/.zshrc $XDG_CONFIG_HOME/zsh/.zshenv"
372+
config_files="${ZDOTDIR:-$HOME}/.zshrc ${ZDOTDIR:-$HOME}/.zshenv $XDG_CONFIG_HOME/zsh/.zshrc $XDG_CONFIG_HOME/zsh/.zshenv"
373373
;;
374374
bash)
375375
config_files="$HOME/.bashrc $HOME/.bash_profile $HOME/.profile $XDG_CONFIG_HOME/bash/.bashrc $XDG_CONFIG_HOME/bash/.bash_profile"

0 commit comments

Comments
 (0)