mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
Merge a31c2124e4 into 3dcf9fd662
This commit is contained in:
commit
ead56ea61d
1 changed files with 12 additions and 3 deletions
|
|
@ -23,10 +23,19 @@ prompt_pygmalion_precmd(){
|
|||
|
||||
local nl=""
|
||||
|
||||
if [[ $prompt_length -gt 40 ]]; then
|
||||
nl=$'\n%{\r%}';
|
||||
if [ $prompt_length -gt 40 ]
|
||||
then
|
||||
nl=$'\n%{\r%}'
|
||||
fi
|
||||
PROMPT="$base_prompt$gitinfo$nl$post_prompt"
|
||||
|
||||
if [ ${#VIRTUAL_ENV} -gt 3 ]
|
||||
then
|
||||
venv=$' %{$fg[blue]%}[${VIRTUAL_ENV:t}]%{$reset_color%} '
|
||||
else
|
||||
venv=$''
|
||||
fi
|
||||
|
||||
PROMPT="$base_prompt$gitinfo$nl$venv$post_prompt"
|
||||
}
|
||||
|
||||
prompt_setup_pygmalion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue