Fix root indicator segment

This commit is contained in:
Dominik Ritter 2018-10-11 17:01:15 +02:00
parent f7575f4955
commit 9e55b6b7fa

View File

@ -22,6 +22,6 @@ p9k::register_segment "ROOT_INDICATOR" "" "${DEFAULT_COLOR}" "yellow" $'\u26A1'
##
prompt_root_indicator() {
if [[ "$UID" -eq 0 ]]; then
p9k::prepare_segment "$0" "" $1 "$2" $3 "" "true"
p9k::prepare_segment "$0" "" $1 "$2" $3 "" "[[ true ]]"
fi
}