From 3ddb6fa4857a58a7a496d939520269cd565418f6 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 19 Jul 2018 02:56:47 +0200 Subject: zsh: prompt: Switch to simpler single-line colorless prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- zsh/themes/prompt_kyrias_setup | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'zsh') diff --git a/zsh/themes/prompt_kyrias_setup b/zsh/themes/prompt_kyrias_setup index 27c6445..9100f83 100644 --- a/zsh/themes/prompt_kyrias_setup +++ b/zsh/themes/prompt_kyrias_setup @@ -4,17 +4,9 @@ kyrias' prompt. EOF } -prompt_user_color() { - if (( ! UID )); then - print "red" - else - print "black" - fi -} - venv_prompt() { if [[ -n "$VIRTUAL_ENV" ]]; then - print -Pn '%{$bg[blue]$fg[white] ${VIRTUAL_ENV##*/} %f%k%}' + print -Pn '(${VIRTUAL_ENV##*/}) ' fi } @@ -22,8 +14,7 @@ prompt_kyrias_setup() { setopt prompt_subst autoload -U colors && colors - PROMPT='%{$bg[$(prompt_user_color)]$fg[white] %m %k%f$bg[white]$fg[$(prompt_user_color)] %~ %f%k$(venv_prompt)%} -%{$bg[blue]%} λ %k %}' + PROMPT='%m:%~ $(venv_prompt)%}λ ' } prompt_kyrias_preview() { -- cgit v1.2.3-70-g09d2