Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9128665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:34:08+00:00 2026-06-17T07:34:08+00:00

I have installed GitHub for Windows recently and am using the git bash prompt

  • 0

I have installed GitHub for Windows recently and am using the git bash prompt – the one thing that is bugging me right now is when I type LS all directories are listed in blue.

How do I change my git bash shell so that when I type LS the directories are listed in a different color to blue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T07:34:09+00:00Added an answer on June 17, 2026 at 7:34 am

    This is not specifically a git issue but more the shell that you are using. On MINGW32 using Git 2.9+:

    1. C:\Program Files\Git\etc\bash.bashrc
    # Uncomment to use the terminal colours set in DIR_COLORS        
    eval "$(dircolors -b /etc/DIR_COLORS)"
    
    1. C:\Program Files\Git\etc\DIR_COLORS

    DIR 01;37 # Attribute=bold; Text color=white

    DIR_COLORS File:

    # Below are the color init strings for the basic file types. A color init
    # string consists of one or more of the following numeric codes:
    # Attribute codes:
    # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
    # Text color codes:
    # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
    # Background color codes:
    # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
    #NORMAL 00    # no color code at all
    #FILE 00      # regular file: use no color at all 
    RESET 0       # reset to "normal" color 
    DIR 01;37     # directory 
    LINK 01;36    # symbolic link.  (If you set this to 'target' instead of a
                  # numerical value, the color is as for the file pointed to.)
    

    Also see the following posts:

    • http://linux-sxs.org/housekeeping/lscolors.html
    • http://www.kernel.org/doc/man-pages/online/pages/man5/dir_colors.5.html
    • http://linux.about.com/library/cmd/blcmdl1_dircolors.htm

    For older version of Git, the bash_profile in Git_Installation\etc folder got the colors to change:

    LS_COLORS='di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90'
    export LS_COLORS
    alias ls='ls -F --color --show-control-chars'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just installed Git using http://windows.github.com/ It seems to be installed correctly but I'm
I installed GitHub on mac but I don't have installed git on terminal. When
I wanted to download spring source from https://github.com/SpringSource/spring-framework I have installed Git in my
I have ruby 1.9.2p180 (2011-02-18) [i386-mingw32] installed on my windows 7 machine. Now I
I have installed the Git EXE file for Windows at my machine. I have
I have Tortoise Hg installed on my Windows box, and have been using mercurial
I have recently started using GitHub. I am uploading my cakephp website. Also, I
I have installed Github for windows and when trying to clone the django repo
I have installed the github for windows http://windows.github.com/ . Also already clone a repository
Recently github has launched client for window user and i have installed in my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.