From 991f86f8062137f22def0ea71bd259755b14faed Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Fri, 4 Jan 2013 15:30:39 +0100 Subject: [PATCH] less behaves like cat on small files --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index e75b790..25c7f8f 100644 --- a/.bashrc +++ b/.bashrc @@ -153,6 +153,10 @@ echo "rcp : copy with rsync/ssh" # default editor export EDITOR='gvim' +# If the output is smaller than the screen height is smaller, +# less will just cat it +export LESS="-FX" + # do not permits to recall dangerous commands in bash history export HISTIGNORE='&:[bf]g:exit:*>|*::*rm*-rf*:*rm*-f*' # append history rather than overwrite