[scripts] add a script for searching manpages with fzf

This commit is contained in:
Dmytro Meleshko 2020-04-18 14:53:08 +03:00
parent eaf54fd311
commit 361ef09ae8
2 changed files with 5 additions and 1 deletions

3
scripts/visman Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
man $(apropos '' | fzf --no-multi --tiebreak=begin | sed -n 's/^\([^ ]\+\) (\([^)]\+\)).*$/\2 \1/p')

View file

@ -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