mirror of
https://github.com/divnix/digga.git
synced 2024-09-11 15:15:24 +03:00
purs: show user when root
This commit is contained in:
parent
364a25a7f2
commit
cd44832dc1
@ -1,5 +1,9 @@
|
||||
function zle-line-init zle-keymap-select {
|
||||
PROMPT=`@PURS@/bin/purs prompt -us -k "$KEYMAP" -r "$?" --venv "${${VIRTUAL_ENV:t}%-*}"`
|
||||
if [[ $USER == root ]]; then
|
||||
PROMPT=`@PURS@/bin/purs prompt -u -k "$KEYMAP" -r "$?" --venv "${${VIRTUAL_ENV:t}%-*}"`
|
||||
else
|
||||
PROMPT=`@PURS@/bin/purs prompt -us -k "$KEYMAP" -r "$?" --venv "${${VIRTUAL_ENV:t}%-*}"`
|
||||
fi
|
||||
zle reset-prompt
|
||||
}
|
||||
zle -N zle-line-init
|
||||
|
Loading…
Reference in New Issue
Block a user