Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

Add support for multiline prompt with input below status #63

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -106,6 +106,12 @@ If you want to hide the right hand side prompt completely:
POWERLINE_DISABLE_RPROMPT="true"
```

If you want your input to start on a new line below the status elements of the prompt:

```
POWERLINE_MULTILINE="true"
```

If you don't want the blank line before the prompt:

```
Expand All @@ -118,7 +124,7 @@ If you want full path:
POWERLINE_PATH="full"
```

If you want to display ```~``` instead of your full path:
If you want to display ```~``` instead of your full path:

```
POWERLINE_PATH="short"
Expand Down
5 changes: 5 additions & 0 deletions powerline.zsh-theme
Expand Up @@ -149,6 +149,11 @@ fi

PROMPT="$POWERLINE_SEC1_BG$POWERLINE_SEC1_TXT $POWERLINE_USER_NAME $VENV_STATUS%k%f$POWERLINE_SEC1_FG%K{blue}"$'\ue0b0'"%k%f%F{white}%K{blue} "$POWERLINE_PATH"%F{blue}"$POWERLINE_GIT_INFO_LEFT" %k"$'\ue0b0'"%f "

if [ "$POWERLINE_MULTILINE" != "" ]; then
PROMPT=$PROMPT"
%B%F{blue}❯%f%b "
fi

if [ "$POWERLINE_NO_BLANK_LINE" = "" ]; then
PROMPT="
"$PROMPT
Expand Down