add check for OHMYHSK_DIR
This commit is contained in:
parent
ef405dac20
commit
eda1c267f7
21
ohmy.ksh
21
ohmy.ksh
@ -2,9 +2,30 @@
|
||||
|
||||
#${DEBUG}
|
||||
|
||||
# Stub our load functions
|
||||
paths() {
|
||||
return 0
|
||||
}
|
||||
|
||||
load_extension() {
|
||||
return 0
|
||||
}
|
||||
|
||||
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