File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
.devcontainer/features/bash-config/config Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ __bash_prompt() {
3636__bash_prompt
3737export PROMPT_DIRTRIM=4
3838
39+ # colorize ls output
40+ export LS_OPTIONS=' --color=auto'
41+ eval " $( dircolors) "
42+ alias ls=' ls $LS_OPTIONS'
43+ alias ll=' ls $LS_OPTIONS -l'
44+
3945# enable bash completion for git
4046if [[ -f /usr/share/bash-completion/completions/git ]]; then
4147 source /usr/share/bash-completion/completions/git
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ source dev-container-features-test-lib
1111# The 'check' command comes from the dev-container-features-test-lib. Syntax is...
1212# check <LABEL> <cmd> [args...]
1313check " execute command" bash -c " test $HISTFILE == $CONFIG_FOLDER /.bash_eternal_history"
14+ check " ls colors" bash -c " test $LS_OPTIONS == --color=auto"
1415
1516# Report results
1617# If any of the checks above exited with a non-zero exit code, the test will fail.
You can’t perform that action at this time.
0 commit comments