help-bash
[Top][All Lists]
Advanced

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

Colouring commands on terminal to be green


From: lisa-asket
Subject: Colouring commands on terminal to be green
Date: Sun, 27 Jun 2021 17:32:13 +0200 (CEST)

What is  "\e[39m" exactly ?

From: Koichi Murase <myoga.murase@gmail.com>
To: lisa-asket@perso.be
Subject: Re: Colouring commands on terminal to be green
Date: 27/06/2021 07:09:51 Europe/Paris
Cc: help-bash <help-bash@gnu.org>

2021年6月27日(日) 13:57 <lisa-asket@perso.be>:
> But I also want to colourise the cammands I enter on the command line to show
> as green.
>
> [...] I need some assistance on what I actually have to do such that the 
> commands
> I enter in the command line are coloured green.

I'm not sure if this works in every possible case because it's merely
a hack, but you may modify PS1 and PS0 as

PS1=$PS1'\[\e[32m\]'
PS0='\e[39m'$PS0

--
Koichi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]