Skip to content

Commit cbd1f17

Browse files
committed
Don't reset options arrays to default values
1 parent 2297b2b commit cbd1f17

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

agkozak-zsh-prompt.plugin.zsh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,10 @@ fi
209209
: ${AGKOZAK_BLANK_LINES:=0}
210210
# Whether or not to display the virtual environment
211211
: ${AGKOZAK_SHOW_VIRTUALENV:=1}
212-
213212
# Characters to put around the command execution time (default: nothing )
214-
AGKOZAK_CMD_EXEC_TIME_CHARS=()
213+
(( $+AGKOZAK_CMD_EXEC_TIME_CHARS )) || AGKOZAK_CMD_EXEC_TIME_CHARS=()
215214
# Characters to put around the virtual environment name (default: square brackets)
216-
AGKOZAK_VIRTUALENV_CHARS=( '[' ']' )
215+
(( $+AGKOZAK_VIRTUALENV_CHARS )) || AGKOZAK_VIRTUALENV_CHARS=( '[' ']' )
217216

218217
setopt PROMPT_SUBST NO_PROMPT_BANG
219218

0 commit comments

Comments
 (0)