Skip to content

Commit f541b8a

Browse files
authored
Merge branch 'main' into man-pages
2 parents 012b0ef + d6ecb94 commit f541b8a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.devcontainer/features/bash-config/config/bash-config-rc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ __bash_prompt() {
3838
__bash_prompt
3939
export PROMPT_DIRTRIM=4
4040

41+
# colorize ls output
42+
export LS_OPTIONS='--color=auto'
43+
eval "$(dircolors)"
44+
alias ls='ls $LS_OPTIONS'
45+
alias ll='ls $LS_OPTIONS -l'
46+
4147
# enable bash completion for git
4248
if [[ -f /usr/share/bash-completion/completions/git ]]; then
4349
source /usr/share/bash-completion/completions/git

test/bash-config/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ source dev-container-features-test-lib
1212
# check <LABEL> <cmd> [args...]
1313
check "execute command" bash -c "test $HISTFILE == $CONFIG_FOLDER/.bash_eternal_history"
1414
check "man installed" man -V
15+
check "ls colors" bash -c "test $LS_OPTIONS == --color=auto"
1516

1617
# Report results
1718
# If any of the checks above exited with a non-zero exit code, the test will fail.

0 commit comments

Comments
 (0)