diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2018-07-19 02:56:47 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2018-07-19 02:56:47 +0200 |
commit | 3ddb6fa4857a58a7a496d939520269cd565418f6 (patch) | |
tree | 1dfb1d38cb4915d8f8f1083d31e9ab9b345a0cc8 | |
parent | af342b8fbdb1b26bc7ad7186fb16fc81bfb705e1 (diff) | |
download | dotfiles-3ddb6fa4857a58a7a496d939520269cd565418f6.tar.xz |
zsh: prompt: Switch to simpler single-line colorless prompt
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | zsh/themes/prompt_kyrias_setup | 13 |
1 files changed, 2 insertions, 11 deletions
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() { |