From 23c7a7a616d81aa1bfcc7a38883d2aa0f0124390 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Tue, 8 Dec 2020 12:42:18 +0100 Subject: [PATCH] feat(bash): use bash-completion package This package will pick up completions installed by other packages and will source any local completions from: ~/.local/share/bash-completion/completions --- roles/bash/files/profile | 19 ++++++------------- roles/bash/tasks/main.yml | 17 ++++++++++++++--- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/roles/bash/files/profile b/roles/bash/files/profile index 06fb5e7..18a1ca1 100644 --- a/roles/bash/files/profile +++ b/roles/bash/files/profile @@ -433,17 +433,10 @@ colortest() { stty -ixon # disable ctrl-s and ctrl-q _update_colors "${BACKGROUND:-dark}" -# Enable available completion helpers -# shellcheck disable=SC1090 # no need to shellcheck bash completion files -while read -r d; do [ -d "$d" ] && for f in "$d"/*; do [ -f "$f" ] && . "$f"; done; done <