From 353cfa70c70ba6ad832f863ebb764b24e4c390c2 Mon Sep 17 00:00:00 2001 From: timurvafin Date: Mon, 26 Jun 2023 14:33:42 +0300 Subject: [PATCH] Fix completion --- bash/completion.bash | 7 +++++++ bash/prompt.bash | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 bash/completion.bash diff --git a/bash/completion.bash b/bash/completion.bash new file mode 100644 index 0000000..be08db4 --- /dev/null +++ b/bash/completion.bash @@ -0,0 +1,7 @@ +completion="$(brew --prefix)/etc/profile.d/bash_completion.sh" + +if test -f "$completion" +then + # load bash completion + source "$completion" +fi diff --git a/bash/prompt.bash b/bash/prompt.bash index 6befcdc..0250798 100644 --- a/bash/prompt.bash +++ b/bash/prompt.bash @@ -1,4 +1,5 @@ -git_prompt=/usr/local/etc/bash_completion.d/git-prompt.sh +git_prompt="$(brew --prefix)/etc/bash_completion.d/git-prompt.sh" + [ -f $git_prompt ] && source $git_prompt # regular colors