Mercurial > dotfiles
diff dot_bashrc @ 351:7838713fd3b4
Add color configuration for ls
Highlights filetypes differently based on extension
author | Zeger Van de Vannet <zegervdv@me.com> |
---|---|
date | Fri, 19 Feb 2021 17:37:38 +0100 |
parents | 205d82eb93b4 |
children | cf524a68bebc |
line wrap: on
line diff
--- a/dot_bashrc Fri Feb 19 16:16:41 2021 +0100 +++ b/dot_bashrc Fri Feb 19 17:37:38 2021 +0100 @@ -132,3 +132,9 @@ [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [ -f ~/.bashrc.local ] && source ~/.bashrc.local + +if [ ! -f ~/.lscolors.parsed.sh ]; then + echo 'Generating ls colors' + dircolors --sh ~/.lscolors > ~/.lscolors.parsed.sh +fi +source ~/.lscolors.parsed.sh