bin: help for fossil

This commit is contained in:
xeruf 2022-05-11 12:34:28 +02:00
parent 3e5da69b16
commit 8e0b868c4a
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,8 @@ case $1 in
info --vi-keys $(test "$last" != zsh && echo "--index-search=$last") zsh || info --vi-keys $(test "$last" != zsh && echo "--index-search=$last") zsh ||
LESS="$LESS +/^ *$last *\\[" man zshall;; LESS="$LESS +/^ *$last *\\[" man zshall;;
(gh|chordpro|bat|pdfjam|reflector|topgrade|r128gain|7z|kubectl|diffr) unbuffer "$@" --help | $paginate;; (gh|chordpro|bat|pdfjam|reflector|topgrade|r128gain|7z|kubectl|diffr) unbuffer "$@" --help | $paginate;;
(caddy|stretchly|go|fossil) "$1" help "${@:2}" | $paginate;; (caddy|stretchly|go|fossil) test $1 = "fossil" -a $# -eq 1 && fossil ui "$(locate -l 1 fossil*.fossil)" && break;
"$1" help "${@:2}" | $paginate;;
(rails) { rails -H && rails --help; } | $paginate;; (rails) { rails -H && rails --help; } | $paginate;;
(plantuml) unbuffer "$@" -help | $paginate;; (plantuml) unbuffer "$@" -help | $paginate;;
(vlc) unbuffer vlc --full-help "${@:2}" | $paginate;; (vlc) unbuffer vlc --full-help "${@:2}" | $paginate;;

View File

@ -12,6 +12,6 @@ test -z "$setappend" || sudo chattr -V -a "$dir"
$elevate mkdir -p $(case "$last" in (*/) echo "$last";; (*) dirname "$last";; esac) $elevate mkdir -p $(case "$last" in (*/) echo "$last";; (*) dirname "$last";; esac)
$elevate mv --verbose --interactive "$@" $elevate mv --verbose --interactive "$@"
# Diff when interactive # TODO Diff when interactive
test -z "$setappend" || sudo chattr -V +a "$dir" test -z "$setappend" || sudo chattr -V +a "$dir"