Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion dist/activate
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,12 @@ function _kctf_activate {
else
_kctf_log "To create a cluster config, run \"kctf cluster create\""
fi
PS1="${PS1}${_KCTF_PROMPT_COLOR1}kCTF[ctf=${_KCTF_PROMPT_COLOR2}${KCTF_CTF_NAME}\$(_kctf_config_string)\$(_kctf_chal_string)${_KCTF_PROMPT_COLOR1}] >${_KCTF_PROMPT_COLOR_END} "
if set -o | grep -E '^promptsubst\s+off' -q; then
_kctf_log_warn "Prompt substitution is disabled. Please run 'setopt PROMPT_SUBST' before 'kctf/activate' for extra prompt information."
PS1="${PS1}${_KCTF_PROMPT_COLOR1}kCTF[ctf=${_KCTF_PROMPT_COLOR2}${KCTF_CTF_NAME}${_KCTF_PROMPT_COLOR1}] >${_KCTF_PROMPT_COLOR_END} "
else
PS1="${PS1}${_KCTF_PROMPT_COLOR1}kCTF[ctf=${_KCTF_PROMPT_COLOR2}${KCTF_CTF_NAME}\$(_kctf_config_string)\$(_kctf_chal_string)${_KCTF_PROMPT_COLOR1}] >${_KCTF_PROMPT_COLOR_END} "
fi
}

function deactivate {
Expand Down