ksh.func - dotfiles - These are my dotfiles. There are many like it, but these are mine.
(HTM) git clone git://jay.scot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
ksh.func (285B)
---
1 fzf-man() {
2 MAN="/usr/bin/man"
3
4 if [[ -n "$1" ]]; then
5 $MAN "$@"
6 return $?
7 else
8 $MAN -k . | fzf --reverse --preview="echo {1,2} | sed 's/ (/./' | sed -E 's/\)\s*$//'" | awk '{print $1 "." $2}' | tr -d '()' | xargs -r $MAN
9 return $?
10 fi
11 }