Reduce unset calls
parent
8bee21e428
commit
ead5047fb9
|
|
@ -236,13 +236,9 @@ function __powerline_prompt_command {
|
||||||
PS1="${LEFT_PROMPT}${RIGHT_PROMPT}\n${LAST_STATUS_PROMPT}${PROMPT_CHAR} "
|
PS1="${LEFT_PROMPT}${RIGHT_PROMPT}\n${LAST_STATUS_PROMPT}${PROMPT_CHAR} "
|
||||||
|
|
||||||
## cleanup ##
|
## cleanup ##
|
||||||
unset LAST_STATUS_PROMPT
|
unset LAST_STATUS_PROMPT LAST_SEGMENT_COLOR \
|
||||||
unset LEFT_PROMPT
|
LEFT_PROMPT RIGHT_PROMPT RIGHT_PROMPT_LENGTH \
|
||||||
unset RIGHT_PROMPT
|
SEGMENTS_AT_LEFT SEGMENTS_AT_RIGHT
|
||||||
unset RIGHT_PROMPT_LENGTH
|
|
||||||
unset SEGMENTS_AT_LEFT
|
|
||||||
unset SEGMENTS_AT_RIGHT
|
|
||||||
unset LAST_SEGMENT_COLOR
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PROMPT_COMMAND=__powerline_prompt_command
|
PROMPT_COMMAND=__powerline_prompt_command
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue