We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a846a2 commit cb50477Copy full SHA for cb50477
themes/modern/modern.theme.bash
@@ -46,7 +46,8 @@ detect_venv() {
46
}
47
48
prompt() {
49
- if [ $? -ne 0 ]; then
+ retval=$?
50
+ if [[ retval -ne 0 ]]; then
51
PS1="${TITLEBAR}${bold_red}┌─${reset_color}$(modern_scm_prompt)[${cyan}\u${normal}][${cyan}\w${normal}]$(is_vim_shell)\n${bold_red}└─▪${normal} "
52
else
53
PS1="${TITLEBAR}┌─$(modern_scm_prompt)[${cyan}\u${normal}][${cyan}\w${normal}]$(is_vim_shell)\n└─▪ "
0 commit comments