1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-09-21 11:00:08 +00:00
This commit is contained in:
Michael Louwrens 2018-02-10 21:01:09 +02:00
parent 06802647a1
commit 0551854a9e

View file

@ -610,7 +610,7 @@ prompt_context() {
elif [[ -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then
current_state="REMOTE"
elif sudo -n true 2>/dev/null; then
current_statue="SUDO"
current_state="SUDO"
fi
"$1_prompt_segment" "${0}_${current_state}" "$2" "$DEFAULT_COLOR" "${context_states[$current_state]}" "${content}"