diff options
author | Dennis Eriksen <dennis@eriksen.im> | 2016-12-26 08:23:06 +0100 |
---|---|---|
committer | Dennis Eriksen <dennis@eriksen.im> | 2016-12-26 08:23:06 +0100 |
commit | 7c0b01571ce9ba1291cf7c3395a9d77aa49cca14 (patch) | |
tree | ae0d2b19ce00c4bdbe79466e098d54fb94be4bda /prompt_adam3_setup | |
parent | removed one too many (diff) | |
download | adam3-7c0b01571ce9ba1291cf7c3395a9d77aa49cca14.tar.gz |
just added the possibility of using $ as promptchar
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" |