summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-12-23 11:26:33 +0100
committerxengineering <me@xengineering.eu>2025-12-23 11:28:21 +0100
commit9e41ce623a5c4b6d426fd75fed338d02736e03d3 (patch)
tree41c71b68bad02ca490082708370869a4e97ce4d8
parent3c9b914b14a7c2576d7347cb49942393134a864f (diff)
downloaddotfiles-9e41ce623a5c4b6d426fd75fed338d02736e03d3.tar
dotfiles-9e41ce623a5c4b6d426fd75fed338d02736e03d3.tar.zst
dotfiles-9e41ce623a5c4b6d426fd75fed338d02736e03d3.zip
bash: Explicitly source completions
Some distributions do not do this.
-rw-r--r--.bashrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 8c87e8f..b6fbee6 100644
--- a/.bashrc
+++ b/.bashrc
@@ -8,6 +8,12 @@
. "${HOME}/.config/posix-shell/programs.sh"
. "${HOME}/.config/posix-shell/utils.sh"
+completions='/usr/share/bash-completion/bash_completion'
+if test -r "$completions"
+then
+ . "$completions"
+fi
+
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}