diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-03 19:53:22 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-03 19:53:22 +0100 |
commit | 97487ed1431ed0cfa4f5b6facd69dbd0f13911f4 (patch) | |
tree | cacc50f96ebb5a9b2a3c8d374bbf9e8ccedc64cf /bin/dmscripts/dmhelp | |
parent | 5522d426e21cbedb8791ee4399ff7d28a4c6f10e (diff) |
renamed dmscripts to guiscripts
Diffstat (limited to 'bin/dmscripts/dmhelp')
-rwxr-xr-x | bin/dmscripts/dmhelp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/bin/dmscripts/dmhelp b/bin/dmscripts/dmhelp deleted file mode 100755 index 653fa1f..0000000 --- a/bin/dmscripts/dmhelp +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash -program="${1:-$(dmenu_path | dmenu -l 4 -g 5)}" -opfil="/tmp/dmh_options.txt" -test -z "${program}" && exit 1 - -if ${program} --help > "${opfil}" -then - option="$(\ - grep -E "^ *-[-a-Z]* " "${opfil}" \ - | tr -s ' ' \ - | sort | uniq \ - | column -l 2 -t \ - | dmenu -x -l 20 -g 1 -p "${program}" \ - | awk '{print $1}' \ - )" -elif man $program > "${opfil}" -then - echo lesgo -else - echo "No options found for '${program}'" > /dev/stderr - exit 1 -fi -test -z "${option}" && exit 1 - -rm -f "${opfil}" -${program} ${option} |