bin: help adjustments

This commit is contained in:
xeruf 2022-01-09 22:17:06 +01:00
parent 94f03e791a
commit 616d51d4f9
2 changed files with 4 additions and 4 deletions

View File

@ -11,17 +11,17 @@ case $1 in
# need to install zsh-doc package for info pages
info --vi-keys "$(test "$last" != zsh && echo "--index-search=$last")" zsh ||
LESS="$LESS +/^ *$last *\\[" man zshall;;
(gh|chordpro|bat|pdfjam|reflector|topgrade) unbuffer "$@" --help | $paginate;;
(gh|chordpro|bat|pdfjam|reflector|topgrade|r128gain) unbuffer "$@" --help | $paginate;;
(caddy|stretchly|go) "$1" help "${@:2}" | $paginate;;
(plantuml) unbuffer "$@" -help | $paginate;;
(kdeconnect*) kdeconnect-cli --help-all "${@:2}" | $paginate;;
(vlc) unbuffer vlc --full-help "${@:2}" | $paginate;;
(kdeconnect*) kdeconnect-cli --help-all "${@:2}" | $paginate;;
(pandoc) man pandoc; highlight "Extensions" && pandoc --list-extensions;;
(swaymsg) test $# -gt 1 && man sway "${@:2}" || man swaymsg;;
(swaymsg-*) man sway "${1#swaymsg-}";;
(*) man "$@" ||
{ info "$1" -w | grep -v "manpages" && pinfo "$@"; } ||
if which "$1" >/dev/null; then "$@" --help; "$@" -help 2>&1 | $paginate; fi;;
if which "$1" >/dev/null; then "$@" --help; "$@" -help; "$@" -h 2>&1 | $paginate; fi;;
esac
docs="/usr/share/doc/$1"
if test -d "$docs"; then

View File

@ -1,3 +1,3 @@
#!/bin/sh
# Recursively add replaygain to the given files or from the current directory
r128gain -r --preserve-times 1 "${@:-.}"
r128gain -r --skip-tagged --preserve-times 1 "${@:-.}"