Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .devcontainer/features/bash-config/config/bash-config-rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/bash-config/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ source dev-container-features-test-lib
# The 'check' command comes from the dev-container-features-test-lib. Syntax is...
# check <LABEL> <cmd> [args...]
check "execute command" bash -c "test $HISTFILE == $CONFIG_FOLDER/.bash_eternal_history"
check "ls colors" bash -c "test $LS_OPTIONS == --color=auto"

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