I want to display a warning message when a test in my
~/.profile (actually, in another file that I
~/.profile) fails, e.g.:
if [ -f /usr/bin/vim ]; then export VISUAL=/usr/bin/vim else echosomehow File not found fi
The command should be portable and it should display the message as soon as possible when I log into a graphical session.
I've thought about using the
$PROMPT_COMMAND to issue an
echo command, but I'm not sure it is a proper way.