1

New here. I was trying to make the first word I type on the terminal of a different color from the others. I have looked into the .bashrc file and /etc/inputrc files. I know that I can make use of the GNU readline library to achieve what I want, because it helps in processing the text while the text is being typed, as suggested in the answers to this question. I however, do not wish to mess with the /etc/inputrc and .bashrc files without being sure it would work.

2
  • This will get you there stackoverflow.com/questions/50260269/… :)
    – Rinzwind
    Commented Feb 14, 2020 at 9:55
  • @Rinzwind that did not sort my issue :( As a side note, earlier when I was trying to removing my username and system name from start in terminal, I did export PS1="\e[33;1m\W\$\e[;0;m"; clear; . So following this and your comment I modified this line to, export PS1="\e[33;1m\W\$\e[40;0;34m$1\e[;0;m";clear; but it didn't work as expected
    – REVOLUTION
    Commented Feb 14, 2020 at 10:26

0

You must log in to answer this question.

Browse other questions tagged .