From ae15b25eb7d2715838c4f6048de8f9ff38f2d6c4 Mon Sep 17 00:00:00 2001 From: Marco Kundt Date: Mon, 17 Aug 2020 00:05:11 +0200 Subject: [PATCH] there are systems without dircolors --- zsh/.zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index b9e2771..af29970 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -89,4 +89,6 @@ sshn() { ssh -N -L ${1}:localhost:${2} $3 } -eval "$(dircolors)" +if [[ -x /usr/bin/dircolors ]]; then + eval "$(dircolors)" +fi