dotfiles

My personal dotfiles
git clone git://pcardensab.com/dotfiles
Log | Files | Refs | Submodules | README

bibopen (264B)


      1 #!/bin/sh
      2 
      3 [ -f "$BIB" ] || {
      4     echo "No BIB=$BIB"
      5     exit 1
      6 }
      7 
      8 if [ -t 0 ]; then
      9     command="fzf"
     10 else
     11     command="dmenu -i -l 20"
     12 fi
     13 
     14 biblist-key |
     15     $command |
     16     cut -d" " -f1 |
     17     xargs -I{} find "$BIB_DATA" -name '{}.*' |
     18     xargs -r -n 1 xdg-open