From 35c8d4afb2f6ad332c08ed88c9f685a88f716d49 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Thu, 20 Mar 2025 22:00:15 +0000 Subject: [PATCH] Refine bash-completion setup for non-Darwin systems in .bashrc --- home/.bashrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/home/.bashrc b/home/.bashrc index 1a8f2421..093471d9 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -85,13 +85,11 @@ alias cat="bat" set completion-ignore-case On # bash-completion -if [ ! -f /usr/share/bash-completion/bash_completion ]; then +if [[ "$OSTYPE" != "darwin"* ]] && [ ! -f /usr/share/bash-completion/bash_completion ]; then p i bash-completion fi -if [ -f /usr/share/bash-completion/bash_completion ]; then - . /usr/share/bash-completion/bash_completion -fi +. /usr/share/bash-completion/bash_completion export OFLAGS="--ozone-platform-hint=auto"