# HG changeset patch # User IBBoard # Date 1692820828 -3600 # Node ID 5c19b4fd04c0d0a00837d599c4cbb91a3ccb4816 # Parent e0fa21f96b67fb7b08e2fa31ac0a079c8020b570 Adjust bashrc for different Git Prompt locations diff -r e0fa21f96b67 -r 5c19b4fd04c0 bashrc --- a/bashrc Wed Aug 23 20:56:48 2023 +0100 +++ b/bashrc Wed Aug 23 21:00:28 2023 +0100 @@ -50,7 +50,11 @@ function vcs_status { GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWUPSTREAM=verbose - . /etc/bash_completion.d/git-prompt.sh + if [[ -f /etc/bash_completion.d/git-prompt.sh ]]; then + . /etc/bash_completion.d/git-prompt.sh + else + . /usr/share/bash-completion/completions/git-prompt.sh + fi VCS_EXTRA=$(__git_ps1 "%s") if [[ "x$VCS_EXTRA" == "x" ]]; then