less
If a viewed file is changed and a key r
or Ctrl
+R
is typed, than the file has to be updated (repainted). But, it does not do that. To see the updated file without re-starting less
, type h
and after that type q
.
source-highlight
:# apt install source-highlight
.bashrc
or .zshrc
:export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
export LESS="-R"
-M
or --LONG-PROMPT
less
prompt-I
or --IGNORE-CASE
-s
or --squeeze-blank-lines