1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00

[meta] Use ZIM_HOME in zmanage

And fix init.zhs to export ZIM_HOME. The zmanage script invokes a new
shell for the sub commands, and those would fail as there would be no
value for ZIM_HOME.

Closes #203
This commit is contained in:
Chet Gurevitch 2017-09-03 15:51:46 -07:00 committed by Eric Nielsen
parent f6bb75579f
commit 9eaba9a3a3
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ if ! is-at-least 5.2; then
fi
# Define zim location
(( ! ${+ZIM_HOME} )) && ZIM_HOME="${ZDOTDIR:-${HOME}}/.zim"
(( ! ${+ZIM_HOME} )) && export ZIM_HOME="${ZDOTDIR:-${HOME}}/.zim"
# Source user configuration
if [[ -s "${ZDOTDIR:-${HOME}}/.zimrc" ]]; then

View file

@ -16,7 +16,7 @@ if (( ${#} != 1 )); then
fi
local tools
tools="${ZIM}/tools"
tools="${ZIM_HOME}/tools"
case ${1} in
update) zsh ${tools}/zim_update
@ -33,7 +33,7 @@ case ${1} in
;;
reset) zsh ${tools}/zim_reset
;;
debug) zsh ${ZIM}/modules/debug/functions/trace-zim
debug) zsh ${ZIM_HOME}/modules/debug/functions/trace-zim
;;
*) print ${usage}
;;