dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

dmenuman (217B)


      1 #!/bin/sh
      2 # Use dmenu to open manpages.
      3 term="${TERMINAL:-st}"
      4 
      5 manual="$(man -k . | dmenu -p "Manual:" -l 10 | awk '{print $1}')"
      6 
      7 # open selected manual with terminal
      8 [ -n "$manual" ] && $term man $manual
      9 
     10 exit 0
     11 
     12