Skip to content

Commit

Permalink
<fix>(cache.zsh): added ZDOTDIR (#639)
Browse files Browse the repository at this point in the history
antigen did assume that .zshrc was located within the users home
directory, disregarding a set ZDOTDIR variable!
  • Loading branch information
Shea690901 authored and desyncr committed Jan 2, 2018
1 parent 6aa7016 commit ff391b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bin/antigen.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ antigen-use () {
antigen-version () {
local extensions

printf "Antigen %s (%s)\nRevision date: %s\n" "develop" "2f87993" "2017-12-31 02:09:55 +0000"
printf "Antigen %s (%s)\nRevision date: %s\n" "develop" "6aa7016" "2017-12-31 03:20:22 +0000"

# Show extension information if any is available
if (( $+functions[antigen-ext] )); then
Expand Down Expand Up @@ -1894,8 +1894,8 @@ EOC
LOG "TRACE: ${funcfiletrace}"
if [[ $ANTIGEN_AUTO_CONFIG == true && $#ANTIGEN_CHECK_FILES -eq 0 ]]; then
# Check common configuration file does exist.
if [[ -f $HOME/.zshrc ]]; then
ANTIGEN_CHECK_FILES+=($HOME/.zshrc)
if [[ -f ${ZDOTDIR:-$HOME}/.zshrc ]]; then
ANTIGEN_CHECK_FILES+=(${ZDOTDIR:-$HOME}/.zshrc)
fi
# TODO Fix: Fuzzy match shoud be replaced by a sane way to determine it.
if [[ $#funcfiletrace -ge 6 ]]; then
Expand Down
4 changes: 2 additions & 2 deletions src/ext/cache.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ EOC
LOG "TRACE: ${funcfiletrace}"
if [[ $ANTIGEN_AUTO_CONFIG == true && $#ANTIGEN_CHECK_FILES -eq 0 ]]; then
# Check common configuration file does exist.
if [[ -f $HOME/.zshrc ]]; then
ANTIGEN_CHECK_FILES+=($HOME/.zshrc)
if [[ -f ${ZDOTDIR:-$HOME}/.zshrc ]]; then
ANTIGEN_CHECK_FILES+=(${ZDOTDIR:-$HOME}/.zshrc)
fi
# TODO Fix: Fuzzy match shoud be replaced by a sane way to determine it.
if [[ $#funcfiletrace -ge 6 ]]; then
Expand Down

0 comments on commit ff391b5

Please sign in to comment.