mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 20:00:38 +01:00
Add the ability to disable right b prompt
This commit is contained in:
@@ -37,6 +37,12 @@ If you don't want date or time, you can choose what you want to display:
|
|||||||
POWERLINE_RIGHT_B="date replacement"
|
POWERLINE_RIGHT_B="date replacement"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Or if you don't want to display anything:
|
||||||
|
|
||||||
|
```
|
||||||
|
POWERLINE_RIGHT_B="none"
|
||||||
|
```
|
||||||
|
|
||||||
If you want to display date next to time:
|
If you want to display date next to time:
|
||||||
```
|
```
|
||||||
POWERLINE_RIGHT_A="date"
|
POWERLINE_RIGHT_A="date"
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ fi
|
|||||||
|
|
||||||
if [ "$POWERLINE_RIGHT_B" = "" ]; then
|
if [ "$POWERLINE_RIGHT_B" = "" ]; then
|
||||||
POWERLINE_RIGHT_B=%D{%H:%M:%S}
|
POWERLINE_RIGHT_B=%D{%H:%M:%S}
|
||||||
|
elif [ "$POWERLINE_RIGHT_B" = "none" ]; then
|
||||||
|
POWERLINE_RIGHT_B=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$POWERLINE_RIGHT_A" = "mixed" ]; then
|
if [ "$POWERLINE_RIGHT_A" = "mixed" ]; then
|
||||||
@@ -121,6 +123,8 @@ fi
|
|||||||
if [ "$POWERLINE_DISABLE_RPROMPT" = "" ]; then
|
if [ "$POWERLINE_DISABLE_RPROMPT" = "" ]; then
|
||||||
if [ "$POWERLINE_RIGHT_A" = "" ]; then
|
if [ "$POWERLINE_RIGHT_A" = "" ]; then
|
||||||
RPROMPT="$POWERLINE_GIT_INFO_RIGHT%F{white}"$'\ue0b2'"%k%F{black}%K{white} $POWERLINE_RIGHT_B %f%k"
|
RPROMPT="$POWERLINE_GIT_INFO_RIGHT%F{white}"$'\ue0b2'"%k%F{black}%K{white} $POWERLINE_RIGHT_B %f%k"
|
||||||
|
elif [ "$POWERLINE_RIGHT_B" = "" ]; then
|
||||||
|
RPROMPT="$POWERLINE_GIT_INFO_RIGHT%F{white}"$'\ue0b2'"%k%F{240}%K{white} $POWERLINE_RIGHT_A %f%k"
|
||||||
else
|
else
|
||||||
RPROMPT="$POWERLINE_GIT_INFO_RIGHT%F{white}"$'\ue0b2'"%k%F{black}%K{white} $POWERLINE_RIGHT_B %f%F{240}"$'\ue0b2'"%f%k%K{240}%F{255} $POWERLINE_RIGHT_A %f%k"
|
RPROMPT="$POWERLINE_GIT_INFO_RIGHT%F{white}"$'\ue0b2'"%k%F{black}%K{white} $POWERLINE_RIGHT_B %f%F{240}"$'\ue0b2'"%f%k%K{240}%F{255} $POWERLINE_RIGHT_A %f%k"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user