help-bash
[Top][All Lists]
Advanced

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

Re: Colouring commands on terminal to be green


From: Koichi Murase
Subject: Re: Colouring commands on terminal to be green
Date: Sun, 27 Jun 2021 14:09:51 +0900

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]