From 9f93d04ff95cd33d851094f6907410c35ea298a3 Mon Sep 17 00:00:00 2001 From: lub Date: Fri, 14 Jul 2023 23:24:22 +0200 Subject: [PATCH] bashrc fix bash_completion on debian --- dotfiles/bash/.bashrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dotfiles/bash/.bashrc b/dotfiles/bash/.bashrc index 345505e..5680e31 100644 --- a/dotfiles/bash/.bashrc +++ b/dotfiles/bash/.bashrc @@ -19,7 +19,13 @@ fi export QT_QPA_PLATFORM=wayland-egl export MOZ_ENABLE_WAYLAND=1 -source /usr/share/git/git-prompt.sh +if [ -f '/etc/bash_completion' ]; then + # debian + source /etc/bash_completion +else + # arch + source /usr/share/git/git-prompt.sh +fi PS1='`[ $? = 0 ] || echo "$? "`[\u@\h \w`__git_ps1 " (%s)"`]\$ ' alias ls='ls --color=auto'