May 30

Add the following snippet in the .profile or .bash_profile under your home directory:

export PS1='[\[\e[1;31m\]\u\[\e[0m\] - \[\e[32m\]\w\[\e[0m\]]$ '
export LS_COLORS='di=01;34'
alias ls='ls --color -l'

If you are ‘supergirl’, your Linux home directory would be located at: /home/supergirl, and the file you should add the above lines to is: /home/supergirl/.profile or /home/supergirl/.bash_profile.

What is LS_COLORS doing here?

2 Responses to “Colorful ls, SSH Console and Command Prompt”

  1. Use Shell Environment Variable LS_COLORS to Change Directory Listing Colors of ls –color Says:

    [...] Colorful ls, SSH Console and Command Prompt vi code highlighting: change the default comments color from dark blue to light blue May [...]

  2. Unmanaged Hosting Server Installation & Initial Configuration for Dummies Says:

    [...] shell environment and make the prompt ls command listings a little more colorful so it’s more [...]

Leave a Reply