sob

Simple output bar
git clone https://git.sinitax.com/codemadness/sob
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

complete_word (376B)


      1#!/bin/sh
      2
      3file="$OUTFILE"
      4test -f "$file" || exit 1
      5
      6grepword() {
      7	grep -E "^$1" < "$file"
      8}
      9
     10word="$SOBWRITE"
     11
     12#if test x"$DISPLAY" = x""; then
     13#	line=$(grepword "$word" | sort | uniq | slmenu -l 20)
     14#else
     15#	line=$(grepword "$word" | sort | uniq | dmenu -l 20)
     16#fi
     17
     18line=$(grepword "$word" | sort | uniq | dmenu -l 20)
     19
     20if test x"$line" != x""; then
     21	printf '%s' "$line"
     22fi