From 352ab468b8c251e7b4d69af61485107de7c60b04 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 7 Oct 2018 23:15:36 -0400 Subject: unbreak non-long output --- color-ls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/color-ls b/color-ls index ff7e7a7..911b73a 100755 --- a/color-ls +++ b/color-ls @@ -128,7 +128,7 @@ _colorize () { /\*$/ || (long && /^-/ && $1 ~ /x/){ color=32; } /\|$/ || (long && /^p/) { color=33; } /@$/ || (long && /^l/) { color=35; } - long { printf("\033\[%sm%s\033\[0m\n", color, $0); }' + { printf("\033\[%sm%s\033\[0m\n", color, $0); }' } _remove_symbols () { -- cgit v1.2.1