add check for OHMYHSK_DIR
This commit is contained in:
parent
ef405dac20
commit
eda1c267f7
29
ohmy.ksh
29
ohmy.ksh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user