From 7c0b01571ce9ba1291cf7c3395a9d77aa49cca14 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Mon, 26 Dec 2016 08:23:06 +0100 Subject: just added the possibility of using $ as promptchar --- prompt_adam3_setup | 2 ++ 1 file changed, 2 insertions(+) (limited to 'prompt_adam3_setup') 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" -- cgit v1.2.3