From 125fdaed67045dea254348f4078fa9c7f0b97f64 Mon Sep 17 00:00:00 2001 From: Tom Cobb Date: Fri, 20 Dec 2024 14:30:02 +0000 Subject: [PATCH] Add ls colors --- .devcontainer/features/bash-config/config/bash-config-rc | 6 ++++++ test/bash-config/test.sh | 1 + 2 files changed, 7 insertions(+) diff --git a/.devcontainer/features/bash-config/config/bash-config-rc b/.devcontainer/features/bash-config/config/bash-config-rc index 5e3f78a..2d3883e 100644 --- a/.devcontainer/features/bash-config/config/bash-config-rc +++ b/.devcontainer/features/bash-config/config/bash-config-rc @@ -36,6 +36,12 @@ __bash_prompt() { __bash_prompt export PROMPT_DIRTRIM=4 +# colorize ls output +export LS_OPTIONS='--color=auto' +eval "$(dircolors)" +alias ls='ls $LS_OPTIONS' +alias ll='ls $LS_OPTIONS -l' + # enable bash completion for git if [[ -f /usr/share/bash-completion/completions/git ]]; then source /usr/share/bash-completion/completions/git diff --git a/test/bash-config/test.sh b/test/bash-config/test.sh index 2886eb3..e05525d 100644 --- a/test/bash-config/test.sh +++ b/test/bash-config/test.sh @@ -11,6 +11,7 @@ source dev-container-features-test-lib # The 'check' command comes from the dev-container-features-test-lib. Syntax is... # check