From b0719544d007de898f71c628225db267884b02d7 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Mon, 2 Apr 2018 10:00:20 +0200 Subject: [PATCH] Update. --- bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index b2b3e51..9ee087b 100644 --- a/bashrc +++ b/bashrc @@ -586,8 +586,9 @@ function checkgw () { function lr () { TERM_SIZE=($(stty size)) + INVIS="${VT_GREEN_FG}${VT_RESET}" \ls -goth --time-style="+${VT_GREEN_FG}%Y %b %d %H:%M${VT_RESET}" "$@" | \ - head -$((TERM_SIZE[0]-2)) | cut -b1-${TERM_SIZE[1]} + head -$((TERM_SIZE[0]-2)) | cut -b1-$((TERM_SIZE[1]+${#INVIS})) } ###################################################################### -- 2.20.1