Monday, May 1, 2017

Change Terminal text color

steps:
  1. Open Terminal
  2. $vi ~/.bash_profile
  3. Add below:
  4. export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
    export CLICOLOR=1
    export LSCOLORS=ExFxBxDxCxegedabagacad
    alias ls='ls -GFh'
  5. Done. Open new terminal now you have color text, 
enter $ls -l

No comments:

Post a Comment