From a69f5cb1ba2647fd6354d00541084a5c3a427888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Thu, 28 Jul 2022 15:26:11 +0300 Subject: Nvim as man pager --- dotfiles/.config/mimeapps.list | 1 + dotfiles/.local/bin/menuman | 2 +- dotfiles/.profile | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dotfiles/.config/mimeapps.list b/dotfiles/.config/mimeapps.list index 3708ec0..149052f 100644 --- a/dotfiles/.config/mimeapps.list +++ b/dotfiles/.config/mimeapps.list @@ -4,6 +4,7 @@ application/epub+zip=org.pwmt.zathura-pdf-mupdf.desktop; application/rdf+xml=org.qutebrowser.qutebrowser.desktop; application/xhtml+xml=org.qutebrowser.qutebrowser.desktop; application/xml=org.qutebrowser.qutebrowser.desktop; +application/x-mimearchive=org.qutebrowser.qutebrowser.desktop; audio/mpeg=mpv.desktop; audio/x-xm=mpv.desktop; audio/x-mod=mpv.desktop; diff --git a/dotfiles/.local/bin/menuman b/dotfiles/.local/bin/menuman index 6c41415..d7aaa1f 100755 --- a/dotfiles/.local/bin/menuman +++ b/dotfiles/.local/bin/menuman @@ -61,4 +61,4 @@ if [ ! -z "$isterminal" ]; then man "$chosen" && exit fi -$TERMINAL -T "man $chosen" man $chosen +$TERMINAL -T "Manual pages - $chosen" man $chosen diff --git a/dotfiles/.profile b/dotfiles/.profile index 0ad601e..e1844df 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -17,6 +17,7 @@ export LANG=en_US.UTF-8 export TERMINAL=foot export EDITOR="nvim" export PAGER="less -R -j.5" +export MANPAGER='nvim +Man!' export BROWSER=qutebrowser # Sanely export XDG Base dir variables -- cgit v1.2.3