mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Add a newline to the prompt for convenience
This commit is contained in:
parent
207b6a1e33
commit
aee6a6a4dc
1 changed files with 7 additions and 0 deletions
|
|
@ -166,6 +166,12 @@ prompt_status() {
|
|||
[[ -n "$symbols" ]] && prompt_segment black default "$symbols"
|
||||
}
|
||||
|
||||
# Add a newline to the prompt for convenience
|
||||
prompt_newline() {
|
||||
|
||||
echo "\n→"
|
||||
}
|
||||
|
||||
## Main prompt
|
||||
build_prompt() {
|
||||
RETVAL=$?
|
||||
|
|
@ -176,6 +182,7 @@ build_prompt() {
|
|||
prompt_git
|
||||
prompt_hg
|
||||
prompt_end
|
||||
prompt_newline
|
||||
}
|
||||
|
||||
PROMPT='%{%f%b%k%}$(build_prompt) '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue