X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=scripts.git;a=blobdiff_plain;f=bashrc;fp=bashrc;h=9ee087b76991f57b08ff88c811ec926aec96be50;hp=b2b3e51ab0e7478293590c54f90742263634210d;hb=b0719544d007de898f71c628225db267884b02d7;hpb=c3fd43c00a1093c6c3377e46604becb791bfe2f0 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})) } ######################################################################