From eebcf1695c16271ff04af4b684b7a03a1f8555d4 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Fri, 30 Apr 2010 11:40:45 +0200 Subject: [PATCH] [zsh] LESS option (dont clean screen/ auto quit if can be display on 1 screen) --- .zsh/10_Environment.zsh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.zsh/10_Environment.zsh b/.zsh/10_Environment.zsh index 93e6216..2b425cf 100644 --- a/.zsh/10_Environment.zsh +++ b/.zsh/10_Environment.zsh @@ -1,5 +1,5 @@ -#couleur dans man +# couleur dans man export PAGER="less" export LESS_TERMCAP_mb=$'\E[01;31m' export LESS_TERMCAP_md=$'\E[01;31m' @@ -9,7 +9,11 @@ export LESS_TERMCAP_so=$'\E[01;44;33m' export LESS_TERMCAP_ue=$'\E[0m' export LESS_TERMCAP_us=$'\E[01;32m' +# X : Disables sending the termcap initialization and deinitialization strings to the terminal. +# F : Exit if the entire file can be displayed on the first screen +# R : couleur + +export LESS="$LESS -XRF" +#export GIT_PAGER="more" export EDITOR=/usr/bin/vim -# couleur affiche dans less ( sarosque ) -export LESS="$LESS -R"