From 92f71a2be34c3739d641ca59a563dcc082ca5c8e Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Thu, 28 Oct 2021 06:30:46 +0000 Subject: [PATCH] bashrc: fix freebsd detection --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index eb9f432..37334a5 100644 --- a/.bashrc +++ b/.bashrc @@ -54,7 +54,7 @@ PS1="\[\033[01;32m\]\u@\h${STY:+>${STY#*\.}} \[\033[01;34m\]\W\[\033[31m\${?#0}\ if [ "${OSTYPE%%-*}" = "linux" ];then alias ls='ls --color=auto' alias diff='diff --color=auto' -elif [ "$(OSTYPE%%[0-9]*)" = "freebsd" ];then +elif [ "${OSTYPE%%[0-9]*}" = "freebsd" ];then alias ls='ls -G' fi alias mvi='mpv --config-dir=$HOME/.config/mvi' -- 2.45.2