From 361ef09ae8099e792271335f8db8413a670cd3e7 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Sat, 18 Apr 2020 14:53:08 +0300 Subject: [PATCH] [scripts] add a script for searching manpages with fzf --- scripts/visman | 3 +++ zsh/path.zsh | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 scripts/visman diff --git a/scripts/visman b/scripts/visman new file mode 100755 index 0000000..d7e1ed7 --- /dev/null +++ b/scripts/visman @@ -0,0 +1,3 @@ +#!/bin/sh + +man $(apropos '' | fzf --no-multi --tiebreak=begin | sed -n 's/^\([^ ]\+\) (\([^)]\+\)).*$/\2 \1/p') diff --git a/zsh/path.zsh b/zsh/path.zsh index 6cc275d..91c3d8b 100644 --- a/zsh/path.zsh +++ b/zsh/path.zsh @@ -2,7 +2,8 @@ # tie these env variables to zsh arrays typeset -T PKG_CONFIG_PATH pkg_config_path ':' -export PKG_CONFIG_PATH + +export PKG_CONFIG_PATH PATH MANPATH path_prepend() { if (( $# < 2 )); then