Skip to content

Commit

Permalink
retval check
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-1q committed Jan 24, 2021
1 parent f50115f commit 6e1d2ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion themes/modern/modern.theme.bash
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ detect_venv() {
}

prompt() {
if [ $? -ne 0 ]; then
retval=$?
if [[ retval -ne 0 ]]; then
PS1="${TITLEBAR}${bold_red}┌─${reset_color}$(modern_scm_prompt)[${cyan}\u${normal}][${cyan}\w${normal}]$(is_vim_shell)\n${bold_red}└─▪${normal} "
else
PS1="${TITLEBAR}┌─$(modern_scm_prompt)[${cyan}\u${normal}][${cyan}\w${normal}]$(is_vim_shell)\n└─▪ "
Expand Down

0 comments on commit 6e1d2ba

Please sign in to comment.