Skip to content

Commit 6e1d2ba

Browse files
committed
retval check
1 parent f50115f commit 6e1d2ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

themes/modern/modern.theme.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ detect_venv() {
4646
}
4747

4848
prompt() {
49-
if [ $? -ne 0 ]; then
49+
retval=$?
50+
if [[ retval -ne 0 ]]; then
5051
PS1="${TITLEBAR}${bold_red}┌─${reset_color}$(modern_scm_prompt)[${cyan}\u${normal}][${cyan}\w${normal}]$(is_vim_shell)\n${bold_red}└─▪${normal} "
5152
else
5253
PS1="${TITLEBAR}┌─$(modern_scm_prompt)[${cyan}\u${normal}][${cyan}\w${normal}]$(is_vim_shell)\n└─▪ "

0 commit comments

Comments
 (0)