From: Simon Ruderich Date: Sat, 6 Sep 2008 01:01:40 +0000 (+0200) Subject: Less configuration is now done through a .less file. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=7abc06281cf09194942f844e9655ad96d87c0bdd;p=config%2Fdotfiles.git 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. --- 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.