retval check

pull/1817/head
tiago 2021-01-24 17:12:38 +00:00
parent 3a846a2d47
commit cb5047734b
1 changed files with 2 additions and 1 deletions

View File

@ -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└─▪ "