Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #239708

Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt examples)

From Cindy Sue Causey <butterflybytes@gmail.com>
Newsgroups linux.debian.user
Subject Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt examples)
Date 2021-09-05 14:20 +0200
Message-ID <CTZhT-HX-1@gated-at.bofh.it> (permalink)
References <CT562-5UL-1@gated-at.bofh.it> <CT6v8-6FH-3@gated-at.bofh.it> <CTnvY-1kV-7@gated-at.bofh.it> <CTST8-53d-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 9/5/21, Intense Red <intnsred@golgotha.net> wrote:
>> In /root/.bashrc I use this to give a red prompt including host and
>> full path followed by a new line.
>
>    I take this idea a bit further, setting a longer prompt and setting
> workstation hosts for specific colors for user logins, and then doing a red
>
> prompt for servers.
>
>    Part of my ~/.bashrc:
>
> # Set the hostname to a specific color
> HostName=`hostname -s`
> if [ $HostName = "capncrunch" ]; then
>    HostColor="\[\033[1;36m\]" # Bright Cyan
>
< lots of snip for brevity >
>
> # Then we need to export them so the shell picks things up.
> export PS1 LS_COLORS
>
>    That's worth playing with to change some of the default settings if one
> wants to play with the colors of a terminal (I use KDE's "konsole" rather
> than
> xterm, but it's the same idea.


That's cool. I did play with it last night as my normal user. I'm
going to leave it for now as a reminder to personalize it more. I've
seen very similar in some operating system somewhere but never stopped
to pursue how it was accomplished. Maybe it was even for a different
terminal (emulator) from Debian's repositories.

Its first tweak needs to address that it renders the tab "Title" as
"Untitled window". I've tried a few times over the years to alter that
via "Edit > Preferences > General (tab)" in xfce4-terminal, but it
never stuck. It would always reverse back each time a terminal window
was fully closed. I could see putting something under (dot)bashrc
along with this other as being more geeky fun.

PS I just plugged it in under root after going back above and reading
from the original snippets. I'm really liking that blinking reminder
as to where one is. That might be just what I've always wanted to
cognitively distinguish between chroot and root terminal tabs. That's
been a worry quite often over time. Thank you!

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA
* runs with birdseed *

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Why ``color_prompt`` is only set for ``xterm``? IL Ka <kazakevichilya@gmail.com> - 2021-09-03 02:20 +0200
  Re: Why ``color_prompt`` is only set for ``xterm``? David Wright <deblis@lionunicorn.co.uk> - 2021-09-03 02:40 +0200
    Re: Why ``color_prompt`` is only set for ``xterm``? Nicholas Geovanis <nickgeovanis@gmail.com> - 2021-09-03 03:10 +0200
    Re: Why ``color_prompt`` is only set for ``xterm``? piorunz <piorunz@gmx.com> - 2021-09-03 03:50 +0200
      Re: Why ``color_prompt`` is only set for ``xterm``? Mark Neyhart <Mark.Neyhart@akleg.gov> - 2021-09-03 22:00 +0200
        Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt examples) Intense Red <intnsred@golgotha.net> - 2021-09-05 07:30 +0200
          Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt examples) Cindy Sue Causey <butterflybytes@gmail.com> - 2021-09-05 14:20 +0200
          Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt  examples) Greg Wooledge <greg@wooledge.org> - 2021-09-05 15:10 +0200
            Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt examples) Cindy Sue Causey <butterflybytes@gmail.com> - 2021-09-05 15:40 +0200
              Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt  examples) Greg Wooledge <greg@wooledge.org> - 2021-09-05 15:50 +0200
      Re: Why ``color_prompt`` is only set for ``xterm``? David Wright <deblis@lionunicorn.co.uk> - 2021-09-05 06:30 +0200
        Re: Why ``color_prompt`` is only set for ``xterm``? Greg Wooledge <greg@wooledge.org> - 2021-09-05 15:10 +0200
          Re: Why ``color_prompt`` is only set for ``xterm``? David Wright <deblis@lionunicorn.co.uk> - 2021-09-07 17:10 +0200
    Re: Why ``color_prompt`` is only set for ``xterm``? Nate Bargmann <n0nb@n0nb.us> - 2021-09-05 18:50 +0200
    Re: Why ``color_prompt`` is only set for ``xterm``? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-09-07 20:40 +0200

csiph-web