[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A bug in Vim, in Mate Terminal or in Debian 11?



> 
> Assuming the OP is using Debian's provided .bashrc file (and other
> shell dotfiles), PS1 is changed when .bashrc is read, which normally
> means when bash is started as an interactive, non-login shell.
> 
> Running "bash" would do that.  I prefer "exec bash" because it gives
> a cleaner starting point.
> 
> But... changing the TERM variable isn't the correct solution.  If
> mate-terminal sets TERM to something like "mate-terminal" (speculation),
> then there must be a good reason for it.  Maybe they've diverged enough
> from xterm that setting TERM to xterm would break something.
> 
> If you want the title-changing behavior of bash in a terminal whose $TERM
> doesn't begin with xterm or rxvt, it would be better to change .bashrc
> and simply allow that PS1 addition to happen on other $TERM values as
> well.
> 
> Once we know what $TERM is, we can advise.
> 

$  echo $TERM
xterm-256color
$


Reply to: