commit 4a08995b2f1c90766f992668c67fb37ca534ff00 parent 6d9d26fbbe22ca95232723633219a3c7f618ab39 Author: Ed van Bruggen <edvb54@gmail.com> Date: Mon, 28 Nov 2016 17:55:19 -0800 Add man.sh for man page interface Diffstat:
man.sh | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/man.sh b/man.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +dmenucmd=$(man -k . | cut -d ' ' -f 1,2 | dmenu $@) +[[ -z $dmenucmd ]] && exit +dmenucmd=$(echo $dmenucmd | tr -d '()' | awk '{print $2, " ", $1}') +echo $dmenucmd