From 1872cd2fc9f43937fbadaa1f9db7da74bdc194e8 Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Sat, 18 Jul 2026 08:45:54 +0800 Subject: [PATCH] =?UTF-8?q?dot:=20.bashrc=20=E5=A2=9E=E5=8A=A0=20FreeBSD?= =?UTF-8?q?=20=E4=B8=8B=20ls=20=E9=A2=9C=E8=89=B2=E5=88=AB=E5=90=8D?= =?UTF-8?q?=E4=B8=8E=20bash-completion=20=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot/.bashrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dot/.bashrc b/dot/.bashrc index 2e4a849..1dd8493 100644 --- a/dot/.bashrc +++ b/dot/.bashrc @@ -63,3 +63,13 @@ for _ in ${HOME}/.bashrc.d/*; do source "$_" fi done + +if [[ "$(uname)" == "FreeBSD" ]]; then + # ls with color + alias ls="ls -G" + + # bash-completion need load manually in FreeBSD + if [[ -f /usr/local/share/bash-completion/bash_completion.sh ]]; then + source /usr/local/share/bash-completion/bash_completion.sh + fi +fi