From fecb4341dcc5620ce7745664dbbc4dcc8df3b942 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Tue, 3 Oct 2017 19:30:27 +0300 Subject: [PATCH] - Corrected Bash completion behaviour. - Added Pipenv Bash completion. --- .bashrc | 7 +++++-- .gitignore | 2 ++ .pre-commit-config.yaml | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.bashrc b/.bashrc index 7afbbc0..7753bdf 100644 --- a/.bashrc +++ b/.bashrc @@ -14,8 +14,11 @@ then shopt -s cmdhist [ -f /etc/bash_completion ] && . /etc/bash_completion - # shellcheck disable=SC2086,SC1090 - [ -d "$HOME/.bash_completion.d" ] && . $HOME/.bash_completion.d/* + # shellcheck disable=SC1090 + for sourcefile in $HOME/.bash_completion.d/* + do + [ ! -f "$sourcefile" ] || . "$sourcefile" + done # shellcheck disable=SC1090 # added by travis gem diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..90092a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.bash_completion.d/.pipenv +.pre-commit/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d9d5d59..5c1616f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,6 @@ sha: v0.5.4 hooks: - id: shell-lint - files: &shellscripts 'bashrc|post-merge|profile|docker-|wifi-login|renew-certs|dma-clean|gen-ssh-config|dconf-load|install-git-hooks|pocketchip-battery|update-voltage' + files: &shellscripts 'bashrc|post-merge|profile|docker-|wifi-login|renew-certs|dma-clean|gen-ssh-config|dconf-load|install-git-hooks|pocketchip-battery|update-voltage|pipenv' - id: shellcheck files: *shellscripts -- GitLab