diff options
Diffstat (limited to '')
-rw-r--r-- | prompt_adam3_setup | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/prompt_adam3_setup b/prompt_adam3_setup index 952be3e..a9b792d 100644 --- a/prompt_adam3_setup +++ b/prompt_adam3_setup @@ -85,6 +85,8 @@ prompt_adam3_precmd () { # make promptchar bold red if root if [[ $EUID == 0 ]]; then promptchar="%F{red}%B%#%b%f"; else promptchar="%F{white}%B%#%b%f"; fi + # same as above, but with $ instead of % as promptchar for unprivileged users + #if [[ $EUID == 0 ]]; then promptchar="%F{red}%B%#%b%f"; else promptchar="%F{white}%B%(!.#.$)%b%f"; fi PS1="$base_prompt$path_prompt${vcs_info_msg_0_}%{$reset_color%}$promptchar $post_prompt" PS2="$base_prompt$path_prompt${vcs_info_msg_0_}%{$reset_color%}%_> $post_prompt" |