From a726a0d28ece51069fbc7be9ae1156e8cbd2f37f Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Tue, 4 Apr 2023 04:40:26 +0800 Subject: [PATCH] Use $() instead of ``. --- .bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index d1c9a81..73c3238 100644 --- a/.bashrc +++ b/.bashrc @@ -80,10 +80,10 @@ fi shopt -s checkwinsize shopt -s histappend # -if [ "`uname -s`" == "FreeBSD" -o "`uname -s`" == "Darwin" ]; then +if [ $(uname -s) == "FreeBSD" -o $(uname -s) == "Darwin" ]; then alias ls="/bin/ls -aFG" alias w="/usr/bin/w -i" -elif [ "`uname -s`" == "Linux" ]; then +elif [ $(uname -s) == "Linux" ]; then alias ls="/bin/ls -aF --color=always" else alias ls="/bin/ls -aF"