From 8fa1801b8c55d01059dae3bb10027c7ef8048c95 Mon Sep 17 00:00:00 2001 From: Dylan Pinn Date: Fri, 29 Jan 2021 10:51:39 +1100 Subject: [PATCH] [GIT] Fix bash completions Hub break git completions, see https://github.com/github/hub/issues/2684 --- Brewfile | 2 -- bash_completion.d/.gitkeep | 0 bashrc.d/completion.bash | 5 +++-- 3 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 bash_completion.d/.gitkeep diff --git a/Brewfile b/Brewfile index b07103a65..05f65fcf2 100644 --- a/Brewfile +++ b/Brewfile @@ -113,8 +113,6 @@ if ENV["HOMEBREW_PROFILE"] == "work" brew "cowbell/stuff/rea-as" # Making SLiPs easy to use brew "cowbell/stuff/rea-slip-utils" - # Add GitHub support to git on the command-line - brew "hub" # Build tool for Scala projects brew "sbt" diff --git a/bash_completion.d/.gitkeep b/bash_completion.d/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/bashrc.d/completion.bash b/bashrc.d/completion.bash index 5cb1b8bfb..3fe1f32f4 100644 --- a/bashrc.d/completion.bash +++ b/bashrc.d/completion.bash @@ -1,3 +1,4 @@ # Bash completion. -# shellcheck disable=SC1091 -[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh" + +# shellcheck source=/dev/null +[[ -r "$(brew --prefix)/etc/profile.d/bash_completion.sh" ]] && . "$(brew --prefix)/etc/profile.d/bash_completion.sh" \ No newline at end of file