1
0
Fork 0
mirror of synced 2024-06-29 11:41:09 -04:00

Different prompt for privileged users

Use `%(!.#.$)` which will display `$` for normal users and `#` for privileged users
This commit is contained in:
Amin Bandali 2016-07-23 23:01:14 -04:00 committed by GitHub
parent 5f7a75a969
commit d395649113

View file

@ -43,7 +43,7 @@ prompt_steeef_precmd() {
PROMPT=' PROMPT='
%{$purple%}%n${${reset_color}%} at %{$orange%}%m${${reset_color}%} in %{$limegreen%}%~${${reset_color}%} $vcs_info_msg_0_$(virtualenv_info)%{${reset_color}%} %{$purple%}%n${${reset_color}%} at %{$orange%}%m${${reset_color}%} in %{$limegreen%}%~${${reset_color}%} $vcs_info_msg_0_$(virtualenv_info)%{${reset_color}%}
$ ' %(!.#.$) '
} }
prompt_steeef_setup() { prompt_steeef_setup() {