From 8e0b868c4a3b0c7a243a2329399e293d6a610d00 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Wed, 11 May 2022 12:34:28 +0200 Subject: [PATCH] bin: help for fossil --- .local/bin/scripts/help | 3 ++- .local/bin/scripts/m | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.local/bin/scripts/help b/.local/bin/scripts/help index bf7a552..f3591d1 100755 --- a/.local/bin/scripts/help +++ b/.local/bin/scripts/help @@ -11,7 +11,8 @@ case $1 in info --vi-keys $(test "$last" != zsh && echo "--index-search=$last") zsh || LESS="$LESS +/^ *$last *\\[" man zshall;; (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;; (plantuml) unbuffer "$@" -help | $paginate;; (vlc) unbuffer vlc --full-help "${@:2}" | $paginate;; diff --git a/.local/bin/scripts/m b/.local/bin/scripts/m index 4d344f2..741a954 100755 --- a/.local/bin/scripts/m +++ b/.local/bin/scripts/m @@ -12,6 +12,6 @@ test -z "$setappend" || sudo chattr -V -a "$dir" $elevate mkdir -p $(case "$last" in (*/) echo "$last";; (*) dirname "$last";; esac) $elevate mv --verbose --interactive "$@" -# Diff when interactive +# TODO Diff when interactive test -z "$setappend" || sudo chattr -V +a "$dir"