add check for OHMYHSK_DIR

This commit is contained in:
Aaron Bieber 2020-07-17 16:41:30 -06:00
parent ef405dac20
commit eda1c267f7

View File

@ -2,9 +2,30 @@
#${DEBUG}
LOAD_PATH="$OHMYKSH_DIR"
# Stub our load functions
paths() {
return 0
}
. ${LOAD_PATH}/lib/loader.ksh
load_extension() {
return 0
}
set -A completions --
set -A extensions --
load_completion() {
return 0
}
set_prompt() {
return 0
}
if [ -z $OHMYKSH_DIR ]; then
echo "Please set OHMYKSH_DIR to the location of ohmyksh"
else
LOAD_PATH="$OHMYKSH_DIR"
. ${LOAD_PATH}/lib/loader.ksh
set -A completions --
set -A extensions --
fi