Verily did Martin Novak write:
> hi,
> i'm new here, so hello everybody.
>
> could anyone try to reproduce this behaviour, or give me a hint?
> below is the .bash_profile part which defines my PS1.
> it works fine, but fvwm seems to have a problem with the titlebar, when a
> new xterm is opened. the titlebar simply says 'xterm', until i change to
> some directory for the first time. from then on it works properly.
> with twm the ps1 definition works without problems here.
[snip...]
You'll need to debug your .bash_profile to find out why "prmpt1" isn't
getting called. Is anything else in your .bash_profile executing when
you open an xterm?
I also run fun stuff in my xterm title bars, my setup is real simple and
looks like this:
==== .profile ====
# ... stuff above here, irrelevant (set path, etc..)
if [ X"${SHELL}" = X"" ]; then
echo "SHELL not defined! (Rob msg 1)"
else
BSHELL="`basename ${SHELL}`" ; export BSHELL
fi
# going interactive!
if [ -f ${HOME}/.profile-login ]; then
case $- in
*i*) . ${HOME}/.profile-login ;;
*) # do nothing, really. ;;
esac
# feh, sh doesn't know the above
if [ X"${BSHELL}" = X"sh" ]; then
go() { . ${HOME}/.profile-login ; }
fi
fi
==== end of .profile ====
==== .profile-login ====
# ... stuff above here, irrelevant (define aliases, some interactive vars)
case ${BSHELL} in
sh)
# irrelevant stuff here
;;
bash)
set -o emacs
if [ X"${TERM}" = X"xterm" -o X"${TERM}" = X "xterm-color" ]; then
if [ X"${UID}" = X"0" ]; then
PS1=": (r) \h; \[\033]2;-root- \h:\w\007\]"
else
PS1=": \h; \[\033]2;\h:\w\007\]"
fi
else
if [ X"${UID}" = X"0" ]; then
PS1=": (r) \h:\w#; "
else
PS1=": \h:\w; "
fi
fi
chfont() { echo -en "\033]50;$*\007" ; }
chicon() { echo -en "\033]1;$*\007" ; }
chtitle() { echo -en "\033]2;$*\007" ; }
;;
ksh)
# more stuff, irrelevant
;;
zsh)
# more stuff, irrelevant
;;
*)
echo "wtf!?!?! I don't know what you are running."
;;
esac
if [ ! X"${PS1}" = X"" ]; then
export PS1
fi
==== end of .profile-login ====
As you can tell, I don't bother with shell-specific dotfiles.
Rob++
----------------------------------------
Internet: windsor_at_warthog.com __o
Life: Rob_at_Carrollton.Texas.USA.Earth _`\<,_
(_)/ (_)
The weather is here, wish you were beautiful.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri May 11 2001 - 14:56:09 BST