dot

packages and services management
Log | Files | Refs | README

commit cf49f02b9638b5b16fd22f746ba56b11f056aabd
parent b289404c68e8ab9526f8099b69654e70aeec3c90
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Thu, 27 Jul 2017 21:10:02 +0200

bin/edit: ubiquitous pager/editor

Sets VISUAL and EDITOR to ex, then call less.  To switch to ex, 'v'
can be pressed from less.

Diffstat:
Abin/edit | 1+
Mshell/.profile | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/edit b/bin/edit @@ -0,0 +1 @@ +EDITOR=ex VISUAL=ex less "$@" diff --git a/shell/.profile b/shell/.profile @@ -6,6 +6,6 @@ export MAIL="$VAR/mail/INBOX" export EMAIL='mail@josuah.net' export TZ='Europe/Paris' -command -v vim && export EDITOR=vim || export EDITOR=vi +export EDITOR=edit command -v less && export PAGER=less || export PAGER=more export VISUAL=$EDITOR MANPAGER=$PAGER