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} "
|
||||
|
||||
## cleanup ##
|
||||
unset LAST_STATUS_PROMPT
|
||||
unset LEFT_PROMPT
|
||||
unset RIGHT_PROMPT
|
||||
unset RIGHT_PROMPT_LENGTH
|
||||
unset SEGMENTS_AT_LEFT
|
||||
unset SEGMENTS_AT_RIGHT
|
||||
unset LAST_SEGMENT_COLOR
|
||||
unset LAST_STATUS_PROMPT LAST_SEGMENT_COLOR \
|
||||
LEFT_PROMPT RIGHT_PROMPT RIGHT_PROMPT_LENGTH \
|
||||
SEGMENTS_AT_LEFT SEGMENTS_AT_RIGHT
|
||||
}
|
||||
|
||||
PROMPT_COMMAND=__powerline_prompt_command
|
||||
|
|
|
|||
Loading…
Reference in New Issue