mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[scripts] add a script for searching manpages with fzf
This commit is contained in:
parent
eaf54fd311
commit
361ef09ae8
2 changed files with 5 additions and 1 deletions
3
scripts/visman
Executable file
3
scripts/visman
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
man $(apropos '' | fzf --no-multi --tiebreak=begin | sed -n 's/^\([^ ]\+\) (\([^)]\+\)).*$/\2 \1/p')
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
# tie these env variables to zsh arrays
|
# tie these env variables to zsh arrays
|
||||||
typeset -T PKG_CONFIG_PATH pkg_config_path ':'
|
typeset -T PKG_CONFIG_PATH pkg_config_path ':'
|
||||||
export PKG_CONFIG_PATH
|
|
||||||
|
export PKG_CONFIG_PATH PATH MANPATH
|
||||||
|
|
||||||
path_prepend() {
|
path_prepend() {
|
||||||
if (( $# < 2 )); then
|
if (( $# < 2 )); then
|
||||||
|
|
Loading…
Reference in a new issue