summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2016-09-13 21:29:46 -0400
committerJune McEnroe <programble@gmail.com>2016-09-13 21:29:46 -0400
commitcd661fef839a92842beb163f83f74ad3aaaab5b7 (patch)
tree9da4c2e96a268e92c6327b0dca819e8c148e495f
parentUse return value of getopt in xx (diff)
downloadsrc-cd661fef839a92842beb163f83f74ad3aaaab5b7.tar.gz
src-cd661fef839a92842beb163f83f74ad3aaaab5b7.zip
Use nvim as MANPAGER
Diffstat (limited to '')
-rwxr-xr-x.bin/manpager1
-rw-r--r--.zshrc5
-rwxr-xr-xinstall.sh1
3 files changed, 5 insertions, 2 deletions
diff --git a/.bin/manpager b/.bin/manpager
new file mode 100755
index 00000000..f358f5d9
--- /dev/null
+++ b/.bin/manpager
@@ -0,0 +1 @@
+exec nvim -c 'set ft=man' - 1< /dev/tty 2< /dev/tty
diff --git a/.zshrc b/.zshrc
index c664866d..765892fc 100644
--- a/.zshrc
+++ b/.zshrc
@@ -11,8 +11,9 @@ bindkey -v
 KEYTIMEOUT=1
 
 PATH=$PATH:~/.bin
-export PAGER=less EDITOR=vim GIT_EDITOR=vim
-type nvim > /dev/null && EDITOR=nvim GIT_EDITOR=nvim && alias vim=nvim
+export PAGER=less MANPAGER=less EDITOR=vim GIT_EDITOR=vim
+type nvim > /dev/null &&
+  MANPAGER=manpager EDITOR=nvim GIT_EDITOR=nvim && alias vim=nvim
 export GPG_TTY=$TTY
 
 export CLICOLOR=1
diff --git a/install.sh b/install.sh
index fe547ae9..dd18fe28 100755
--- a/install.sh
+++ b/install.sh
@@ -21,6 +21,7 @@ link() {
   echo "$1"
 }
 
+link .bin/manpager
 link .bin/xx.c
 link .config/git/config
 link .config/git/ignore
-13Makefile: make "git/config.mak.uname" inclusion optionalJohn Keeping 2015-08-13ui-shared: show full date in tooltip if longer ago than max_relativeJohn Keeping 2015-08-13ui-shared: use common function in print_rel_date()John Keeping 2015-08-13ui-shared: extract date formatting to a functionJohn Keeping 2015-08-13filter: don't use dlsym unnecessarilyJohn Keeping 2015-08-13ui-tree: use "sane" isgraph()John Keeping 2015-08-13cgit.h: move stdbool.h from ui-shared.hJohn Keeping 2015-08-13cache.c: fix header orderJohn Keeping 2015-08-13configfile.c: don't include system headers directlyJohn Keeping 2015-08-13Remove redundant includesJohn Keeping 2015-08-13Makefile: include Git's config.mak.unameJohn Keeping 2015-08-13tests: allow shell to be overriddenJohn Keeping 2015-08-13redirect: cleanlinessJason A. Donenfeld 2015-08-13redirect: be more careful for different cgi setupsJason A. Donenfeld 2015-08-12ui-log: fix double countingJohn Keeping 2015-08-12log: allow users to follow a fileJohn Keeping 2015-08-12shared: make cgit_diff_tree_cb publicJohn Keeping 2015-08-12t0110: Chain together using &&Jason A. Donenfeld 2015-08-12about: always ensure page has a trailing slashJason A. Donenfeld 2015-08-12filters: apply HTML escapingLazaros Koromilas 2015-08-12git: update to v2.5.0Christian Hesse 2015-08-12Fix processing of repo.hide and repo.ignoreDaniel Reichelt