Hallo Tom,
Ja schön.
Und wie erreiche ich nun, dass nur die von mir eingegebene Befehlszeile eine andere Farbe hat, als die Ausgaben?
Indem Du die Variable PS1 auf irgend einen Farbcode(*) enden lässt, z.b. \033[0;33m.
Bsp:
export PS1='${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m]$ \033[0;33m'
(*) Btw: man 4 console_codes
Viele Grüße,
Christian
--
Mein "Weblog" [RSS]
Using XSLT to create JSON output (Saxon-B 9.0 for Java)
How to tell the difference between a science fan and a scientist.
Mein "Weblog" [RSS]
Using XSLT to create JSON output (Saxon-B 9.0 for Java)
How to tell the difference between a science fan and a scientist.