mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
fix(trapd00r.zsh): prompt to bottom
This commit is contained in:
parent
3568f669fc
commit
11684d6cf5
1 changed files with 16 additions and 15 deletions
|
|
@ -108,6 +108,8 @@ add-zsh-hook precmd prompt_jnrowe_precmd
|
||||||
|
|
||||||
prompt_jnrowe_precmd () {
|
prompt_jnrowe_precmd () {
|
||||||
vcs_info
|
vcs_info
|
||||||
|
}
|
||||||
|
|
||||||
if [ "${vcs_info_msg_0_}" = "" ]; then
|
if [ "${vcs_info_msg_0_}" = "" ]; then
|
||||||
dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
|
dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
|
||||||
PROMPT='${dir_status} ${ret_status}%{$reset_color%}
|
PROMPT='${dir_status} ${ret_status}%{$reset_color%}
|
||||||
|
|
@ -129,4 +131,3 @@ ${dir_status}%{$reset_color%}
|
||||||
${dir_status}%{$reset_color%}
|
${dir_status}%{$reset_color%}
|
||||||
> '
|
> '
|
||||||
fi
|
fi
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue