From 5bc0d0fcfa1dffd2ee7a2520efcbbd41d60c0a8c Mon Sep 17 00:00:00 2001 From: Piotr Gaczkowski Date: Sat, 19 Mar 2016 18:20:26 +0100 Subject: [PATCH] Only display palette when run interactively --- _apply-colors.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_apply-colors.sh b/_apply-colors.sh index d8e384c..b4c4450 100644 --- a/_apply-colors.sh +++ b/_apply-colors.sh @@ -186,4 +186,6 @@ function gogh_colors () { echo "" } -gogh_colors +if [[ "$(dirname $(readlink -f "${*:-/dev/null}"))" == "$(dirname $(readlink -f "$0"))*" ]]; then + gogh_colors +fi