Not to jhijack the thread but to show another -- more generic way
-- of dealing with apps that fail silently:

This changes the prompt $ to red incase the $? return value of the
previous process returned non-zero.

    red=$(printf '\e[31m')
    export PS1='\[\e[0;36m\]\w\[\e[01m\]\[\e[30m\]$([ $? -eq 0 ]||printf 
$red)\$\[\e[0m\] '



# Han

Reply via email to