From: Samir Benmendil Date: Sat, 4 Jan 2025 16:43:52 +0000 (+0000) Subject: zsh: move venv status to second line of prompt X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/d1af4cf985639daae987489ab35460112200eab4 zsh: move venv status to second line of prompt --- diff --git a/zsh/lib/prompt.zsh b/zsh/lib/prompt.zsh index c249210..3453f4b 100644 --- a/zsh/lib/prompt.zsh +++ b/zsh/lib/prompt.zsh @@ -6,8 +6,8 @@ hostcolor=cyan [[ $(hostname) == "tardis" ]] && hostcolor=red precmd() { - PROMPT='%T $(virtualenv_prompt)%n@%{$fg[$hostcolor]%}%m$(jobs_prompt)%-0>..>$(git_prompt_status)%>> -%(?..%{$fg_bold[white]%}%?)%{$reset_color%}$(vi_prompt_info)%{%(!.$fg[red]❰.$fg[green]❱)%1G%} ' + PROMPT='%T %n@%{$fg[$hostcolor]%}%m$(jobs_prompt)%-0>..>$(git_prompt_status)%>> +$(virtualenv_prompt)%(?..%{$fg_bold[white]%}%?)%{$reset_color%}$(vi_prompt_info)%{%(!.$fg[red]❰.$fg[green]❱)%1G%} ' RPROMPT='%{$fg[green]%}%~%{$reset_color%}' }