From 7abc06281cf09194942f844e9655ad96d87c0bdd Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 6 Sep 2008 03:01:40 +0200 Subject: [PATCH] Less configuration is now done through a .less file. This was done because it's the only way to specify key bindings for less. With this change the LESS variable was removed and its data is now also in the lesskey file. --- lesskey | 13 +++++++++++++ zsh/env | 7 +------ 2 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 lesskey diff --git a/lesskey b/lesskey new file mode 100644 index 0000000..70f9ae1 --- /dev/null +++ b/lesskey @@ -0,0 +1,13 @@ +# Lesskey configuration file for less. + + +#command + +# Map "-" to go up one screen like in mutt. +- back-screen + +#env + +# Set options for less. If the command output fits on the current terminal +# page less automatically quits. Also allows the use with colordiff. +LESS = --no-init --search-skip-screen --quit-if-one-screen --RAW-CONTROL-CHARS diff --git a/zsh/env b/zsh/env index 269695e..801b237 100644 --- a/zsh/env +++ b/zsh/env @@ -7,14 +7,9 @@ export LC_ALL=en_US.UTF-8 # Set Vim as my editor. export EDITOR=vim -# Set less as my pager. +# Set less as my pager, its configuration is done through the .less file. export PAGER=less -# Set options for less. If the command output fits on the current terminal -# page less automatically quits. Also allows the use with colordiff. -export LESS="--no-init --search-skip-screen --quit-if-one-screen \ ---RAW-CONTROL-CHARS" - # If an env.local file exists load it, otherwise load an env file for the # current hostname (first part before a dot) if it exists. -- 2.45.2