From 0e5a66c48ead7e503ea427ac479246647a279795 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Tue, 30 Mar 2021 13:57:55 -0400 Subject: [PATCH] add Darwin check --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index fab4c39..be17fe3 100644 --- a/.bashrc +++ b/.bashrc @@ -90,7 +90,7 @@ alias grep='grep --colour=auto' alias egrep='egrep --colour=auto' alias fgrep='fgrep --colour=auto' -xhost +local:root > /dev/null 2>&1 +[[ "$(uname -s)" == "Darwin" ]] || xhost +local:root > /dev/null 2>&1 && true complete -cf sudo