Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #183590
| From | Sven Joachim <svenjoac@gmx.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: [Solved] Re: Problem with colors in terminal |
| Date | 2017-07-12 13:10 +0200 |
| Message-ID | <u2nGP-7sP-35@gated-at.bofh.it> (permalink) |
| References | <u2kSE-5FA-55@gated-at.bofh.it> <u2lOF-6iL-17@gated-at.bofh.it> <u2mhH-6sQ-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2017-07-12 11:29 +0200, steve wrote:
> Le 12-07-2017, à 11:05:22 +0200, deloptes a écrit :
>
>>steve wrote:
>>
>>> We see that LS_COLORS is set in xterm but not in xfce4-terminal. I don't
>>> understand why since both should read ~/.bashrc when executed.
>>>
>>> Any ideas?
>>
>>I think .bashrc is read only if you use bash as login shell.
It's the other way around, .bashrc is only read if bash is _not_ a login
shell. Which is why many people source ~/.bashrc from ~/.bash_profile
(or ~/.bash_login, or ~/.profile) to get the same behavior, no matter if
the are running a login shell or not.
> Trying 'bash --login' gave me colors. xfce4-terminal was treated as a
> non-login interactive shell, and thus was not reading $HOME/.bashrc.
By the comment above, xfce4-terminal should have treated bash as a login
shell, however it does not do this in my experience. Now I'm confused.
> I also had to change my TERM variable to xterm-color in order to work.
That's something you definitely don't want to do, xterm-color is for
_very_ ancient terminals. Be prepared for misbehavior in curses
programs.
Is there a reason why you are deviating from the default
TERM=xterm-256color in xfce4-terminal?
Cheers,
Sven
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Problem with colors in terminal steve <dlist@bluewin.ch> - 2017-07-12 10:10 +0200
Re: Problem with colors in terminal deloptes <deloptes@gmail.com> - 2017-07-12 11:10 +0200
[Solved] Re: Problem with colors in terminal steve <dlist@bluewin.ch> - 2017-07-12 11:40 +0200
Re: [Solved] Re: Problem with colors in terminal Sven Joachim <svenjoac@gmx.de> - 2017-07-12 13:10 +0200
Re: [Solved] Re: Problem with colors in terminal Greg Wooledge <wooledg@eeg.ccf.org> - 2017-07-12 14:40 +0200
Re: [Solved] Re: Problem with colors in terminal steve <dlist@bluewin.ch> - 2017-07-12 16:20 +0200
Re: [Solved] Re: Problem with colors in terminal Sven Joachim <svenjoac@gmx.de> - 2017-07-12 16:30 +0200
Re: [Solved] Re: Problem with colors in terminal steve <dlist@bluewin.ch> - 2017-07-12 16:40 +0200
csiph-web