Skip to content

Commit

Permalink
Merge pull request #49 from ss-o/dev-codebase
Browse files Browse the repository at this point in the history
checks zi home dir
  • Loading branch information
ss-o authored Dec 4, 2021
2 parents 7687c53 + 3f1fb84 commit 209827c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zi.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ if [[ -z ${ZI[HOME_DIR]} ]]; then
else
ZI[HOME_DIR]="${HOME}/.zi"
fi
else
builtin print -P "%F{196}Could not establish ZI[HOME_DIR] hash field. It should point where ❮ ZI ❯ Git repository is.%f"
fi
if [[ ! -d ${ZI[HOME_DIR]} ]]; then
builtin print -P "%F{196}Could not establish ZI[HOME_DIR] location. It should point to the default home location of ❮ ZI ❯%f"
return 1
fi

# Directories setup.
# ❮ ZI ❯ Home directories setup.
: ${ZI[PLUGINS_DIR]:=${ZI[HOME_DIR]}/plugins}
: ${ZI[SNIPPETS_DIR]:=${ZI[HOME_DIR]}/snippets}
: ${ZI[SERVICES_DIR]:=${ZI[HOME_DIR]}/services}
Expand Down

0 comments on commit 209827c

Please sign in to comment.