diff --git a/sh/archive b/sh/archive index ab15032..73a0cb8 100755 --- a/sh/archive +++ b/sh/archive @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# NO_BASH -# NO_DASH -# NO_ASH +# YES_ZSH NO_BASH NO_DASH NO_ASH archive() { ### @- create an archive file in one of a few formats. ### borrowed from [prezto.](https://github.com/sorin-ionescu/prezto) diff --git a/sh/argc b/sh/argc index 89ceda7..96b5c87 100755 --- a/sh/argc +++ b/sh/argc @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH argc() { ### @- validate the number of arguments in a function. ### ```sh diff --git a/sh/arith b/sh/arith index 4008ee5..9a930a7 100755 --- a/sh/arith +++ b/sh/arith @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # though technically compatible with other shells, # extra functionality is through zsh's extended arithmetic functions. diff --git a/sh/arrays b/sh/arrays index 3c486e1..c71c311 100644 --- a/sh/arrays +++ b/sh/arrays @@ -1,8 +1,5 @@ #!/usr/bin/env false -# YES_ZSH -# YES_BASH -# NO_DASH -# NO_ASH +# YES_ZSH YES_BASH NO_DASH NO_ASH whoa=( -Wall diff --git a/sh/aur b/sh/aur index 5053ac5..ecdd422 100755 --- a/sh/aur +++ b/sh/aur @@ -1,9 +1,6 @@ #!/usr/bin/env bash # http://aur.sh with massive feature creep -# NO_ZSH -# YES_BASH -# NO_DASH -# NO_ASH +# NO_ZSH YES_BASH NO_DASH NO_ASH aur() { ### @- ### download, edit, make, and install packages from the diff --git a/sh/autosync b/sh/autosync index f741665..81e806a 100755 --- a/sh/autosync +++ b/sh/autosync @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# NO_BASH -# NO_DASH -# NO_ASH +# YES_ZSH NO_BASH NO_DASH NO_ASH # TODO: portable way of dodging aliases to allow other shell support? diff --git a/sh/bak b/sh/bak index bbd0a78..3d79fe6 100755 --- a/sh/bak +++ b/sh/bak @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH bak() { ### @- ### backup files by creating copies and appending ".bak" to their names. diff --git a/sh/baknow b/sh/baknow index 1fbc276..9991615 100755 --- a/sh/baknow +++ b/sh/baknow @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH baknow() { ### @- backup files by appending their timestamps given by [`now`.](#now) ### ``` diff --git a/sh/baks b/sh/baks index a10f776..bfacea9 100755 --- a/sh/baks +++ b/sh/baks @@ -1,9 +1,6 @@ #!/usr/bin/env sh # backup, timestamped -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH baks() { ### @- ### backup files by copying each and appending *the current* date-time, diff --git a/sh/bin b/sh/bin index 7e25895..169b951 100755 --- a/sh/bin +++ b/sh/bin @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # though technically compatible with other shells, # extra functionality is through zsh's extended arithmetic functions. diff --git a/sh/busiest b/sh/busiest index 02ee2a6..131185a 100755 --- a/sh/busiest +++ b/sh/busiest @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# NO_BASH -# NO_DASH -# NO_ASH +# YES_ZSH NO_BASH NO_DASH NO_ASH busiest() { ### @- ### list directories in descending order by the number of files in them, diff --git a/sh/colors b/sh/colors index 5e8be78..1ad11f4 100755 --- a/sh/colors +++ b/sh/colors @@ -1,8 +1,5 @@ #!/usr/bin/env bash -# YES_ZSH -# YES_BASH -# NO_DASH -# NO_ASH +# YES_ZSH YES_BASH NO_DASH NO_ASH colors() { ### @- ### display all combinations of foreground and background terminal colors. diff --git a/sh/colors2 b/sh/colors2 index dcc15c0..3a0b262 100755 --- a/sh/colors2 +++ b/sh/colors2 @@ -1,8 +1,5 @@ #!/usr/bin/env bash -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH colors2() { [ $# -eq 0 ] || { printf "%s\n" "$0: does not take arguments" >&2; return 1; } diff --git a/sh/compile b/sh/compile index 0f0da89..8f313e4 100755 --- a/sh/compile +++ b/sh/compile @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# NO_BASH -# NO_DASH -# NO_ASH +# YES_ZSH NO_BASH NO_DASH NO_ASH setup_clang_ubuntu() { ### @- ### print (but don't execute) the commands necessary to install diff --git a/sh/confirm b/sh/confirm index 78e9940..6915823 100755 --- a/sh/confirm +++ b/sh/confirm @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH ### @ confirm ### display a simple yes-or-no prompt and return 0-or-1 respectively. diff --git a/sh/countdiff b/sh/countdiff index 8140a13..04e8418 100755 --- a/sh/countdiff +++ b/sh/countdiff @@ -1,10 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH -# YES_BB_AWK -# YES_OT_AWK +# YES_ZSH YES_BASH YES_DASH YES_ASH YES_BB_AWK YES_OT_AWK countdiff() { ### @- ### count the number of lines changed between two files. diff --git a/sh/cutv b/sh/cutv index 3a062db..fa17275 100755 --- a/sh/cutv +++ b/sh/cutv @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# NO_BASH -# NO_DASH -# NO_ASH +# YES_ZSH NO_BASH NO_DASH NO_ASH cutv() { ### @- ### (WIP) create a short clip of a long video file. diff --git a/sh/dated b/sh/dated index 818a91a..350c6f5 100755 --- a/sh/dated +++ b/sh/dated @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH dated() { local ts= u=0 diff --git a/sh/days b/sh/days index 712e176..1dc31a5 100755 --- a/sh/days +++ b/sh/days @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH days() { ### @- ### compute the number of days since a given date. diff --git a/sh/decently b/sh/decently index 792b7b0..d95527c 100755 --- a/sh/decently +++ b/sh/decently @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # TODO: check if this is compatible with busybox. diff --git a/sh/dfu b/sh/dfu index 5a13620..e6465dd 100755 --- a/sh/dfu +++ b/sh/dfu @@ -1,10 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH -# YES_BB_AWK -# YES_OT_AWK +# YES_ZSH YES_BASH YES_DASH YES_ASH YES_BB_AWK YES_OT_AWK dfu() { ### @- ### pretty-print `df` in GiB. diff --git a/sh/disowned b/sh/disowned index 0aa1f03..0d6cd00 100755 --- a/sh/disowned +++ b/sh/disowned @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH disowned() { ### @- find files in system directories that aren't associated with any pacman packages. # diff --git a/sh/e b/sh/e index 529abd3..671fc9c 100755 --- a/sh/e +++ b/sh/e @@ -1,9 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH -# YES_BB_AWK +# YES_ZSH YES_BASH YES_DASH YES_ASH YES_BB_AWK e() { ### @- ### wrap around `$EDITOR` to run it as root if necessary. diff --git a/sh/ea b/sh/ea index ab7cd88..b446796 100755 --- a/sh/ea +++ b/sh/ea @@ -1,9 +1,6 @@ #!/usr/bin/env sh # remote file access (http file-sharing shenanigans) -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH __ea_curl() { curl -q --no-progress-meter 0.0.0.0 >/dev/null 2>&1 diff --git a/sh/echo2 b/sh/echo2 index 6ccb23a..d705944 100755 --- a/sh/echo2 +++ b/sh/echo2 @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH echo2() { ### @- ### print arguments joined by spaces to stderr without parsing anything. diff --git a/sh/explore b/sh/explore index 86f8953..5801dd4 100755 --- a/sh/explore +++ b/sh/explore @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH explore() { ### @- open a single directory in `explorer.exe`, defaulting to `$PWD`. [ -n "$MSYSTEM" ] || { printf "%s\n" "$0: only for MSYS2" >&2; return 1; } diff --git a/sh/ff b/sh/ff index 57f3d64..efef09c 100755 --- a/sh/ff +++ b/sh/ff @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH ff() { ### @- ### select a file from a given or current directory using diff --git a/sh/ghmd b/sh/ghmd index e7f66fb..d895358 100755 --- a/sh/ghmd +++ b/sh/ghmd @@ -2,10 +2,7 @@ # ghmd - format GitHub markdown # via: https://leahneukirchen.org/dotfiles/.zshrc # example: ghmd < README.md > README.html -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH ghmd() { ### @- ### convert a markdown file to HTML in the style of GitHub. diff --git a/sh/glug b/sh/glug index 5d0ad40..f60a635 100755 --- a/sh/glug +++ b/sh/glug @@ -1,8 +1,5 @@ #!/usr/bin/env dash -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # fuck termcap, all my homies hate termcap. glug() ( # note the subshell syntax. this allows us to abuse globals like crazy. diff --git a/sh/grab b/sh/grab index 964f811..fe9ea87 100644 --- a/sh/grab +++ b/sh/grab @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH __grab() { ### @grab - download a file from my site and verify its integrity by its [minisign](https://github.com/jedisct1/minisign/) signature. [ -z "${ZSH_VERSION}" ] || emulate sh diff --git a/sh/grop b/sh/grop index f73a44b..e1c0bd6 100755 --- a/sh/grop +++ b/sh/grop @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # TODO: check for existence of grep -P; write a perl-based fallback. grop() { ### @- invoke grep with `-oP`. diff --git a/sh/grop4 b/sh/grop4 index 8381fa9..756abe7 100755 --- a/sh/grop4 +++ b/sh/grop4 @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH grop4() { ### @- [`grop`](#grop) for IPv4s. grep -oP -- '(?<=^|[^\d.])((0|1\d\d|2[0-4]\d|25[0-5]|[1-9]\d?)\.((?2))\.((?2))\.((?2)))(?=$|[^\d.])' diff --git a/sh/has b/sh/has index 59777f1..ffa3c51 100755 --- a/sh/has +++ b/sh/has @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH has() { ### @- [`have`,](#have) silently. if [ -z "$ZSH_VERSION" ]; then which -- "$1"; else whence -p -- "$1"; fi diff --git a/sh/have b/sh/have index ff42d9d..45e3690 100755 --- a/sh/have +++ b/sh/have @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH have() { ### @- print the result of `which` if the program is found, else simply return 1. ### ``` diff --git a/sh/hex b/sh/hex index 1c66b3f..2e4c8b3 100755 --- a/sh/hex +++ b/sh/hex @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # though technically compatible with other shells, # extra functionality is through zsh's extended arithmetic functions. diff --git a/sh/ify b/sh/ify index 825a1c8..83307a6 100755 --- a/sh/ify +++ b/sh/ify @@ -1,8 +1,5 @@ #!/usr/bin/sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH ify() { ### @- ### pipe one command through another, so you can still pass arguments to the former. diff --git a/sh/is_empty b/sh/is_empty index 5497048..3b41a3c 100755 --- a/sh/is_empty +++ b/sh/is_empty @@ -1,8 +1,5 @@ #!/usr/bin/env bash -# YES_ZSH -# YES_BASH -# NO_DASH -# NO_ASH +# YES_ZSH YES_BASH NO_DASH NO_ASH is_empty() { ### @- ### return 0 if the directory given by argument is empty. diff --git a/sh/isup b/sh/isup index 823817f..0122bc6 100755 --- a/sh/isup +++ b/sh/isup @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH isup() { ### @- ### return 0 if a given website returns a 2xx HTTP code. diff --git a/sh/join2 b/sh/join2 index 427d717..3ac8743 100644 --- a/sh/join2 +++ b/sh/join2 @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH join2() { ### @- join every other line. # TODO: argc, also better interface that allows n file inputs without stdin. diff --git a/sh/lsarchive b/sh/lsarchive index a19d290..dfa54c0 100755 --- a/sh/lsarchive +++ b/sh/lsarchive @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# NO_BASH -# NO_DASH -# NO_ASH +# YES_ZSH NO_BASH NO_DASH NO_ASH lsarchive() { ### @- list the contents of an archive file in one of many formats. ### borrowed from [prezto.](https://github.com/sorin-ionescu/prezto) diff --git a/sh/maybesudo b/sh/maybesudo index 2ae70e6..b6efe90 100755 --- a/sh/maybesudo +++ b/sh/maybesudo @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH __maybesudo() { ### @maybesudo ### mimic certain features of `sudo` for systems without it installed. diff --git a/sh/minutemaid b/sh/minutemaid index c757034..27f4243 100755 --- a/sh/minutemaid +++ b/sh/minutemaid @@ -1,8 +1,5 @@ #!/usr/bin/env dash -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH minutemaid() { ### @- ### check if the current minute is divisible by a given number, diff --git a/sh/monitor b/sh/monitor index 2731ade..715cc93 100755 --- a/sh/monitor +++ b/sh/monitor @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# NO_BASH -# NO_DASH -# NO_ASH +# YES_ZSH NO_BASH NO_DASH NO_ASH monitor() { ### @- ### this is [watch(1)](https://www.man7.org/linux/man-pages/man1/watch.1.html) diff --git a/sh/morecolors b/sh/morecolors index 1edc85c..46acc0a 100755 --- a/sh/morecolors +++ b/sh/morecolors @@ -1,8 +1,5 @@ #!/usr/bin/env bash -# YES_ZSH -# YES_BASH -# NO_DASH -# NO_ASH +# YES_ZSH YES_BASH NO_DASH NO_ASH morecolors() { ### @- print all 256 colors that are available on most terminals. # borrowed from leah2's dotfiles. diff --git a/sh/noccom b/sh/noccom index 512feb2..859e5da 100755 --- a/sh/noccom +++ b/sh/noccom @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # TODO: what's the minimum version of perl required for this? diff --git a/sh/note b/sh/note index d753da6..0d514a3 100755 --- a/sh/note +++ b/sh/note @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH note() { ### @- ### act like [`echo2`,](#echo2) but use a bright color to stand out more. diff --git a/sh/now b/sh/now index 82c6193..3647556 100755 --- a/sh/now +++ b/sh/now @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH now() { ### @- ### print a date-time (UTC) in a sortable format. diff --git a/sh/oshi b/sh/oshi index 8e954b5..5a3daed 100644 --- a/sh/oshi +++ b/sh/oshi @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH __oshi() { ### @oshi ### upload files (or stdin) to [oshi.at.](https://oshi.at) diff --git a/sh/oxo b/sh/oxo index 84541ea..797c8be 100755 --- a/sh/oxo +++ b/sh/oxo @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # **TL;DR RULES:** # * no executables (for the most part) diff --git a/sh/pacbm b/sh/pacbm index c61d747..8eba7b9 100755 --- a/sh/pacbm +++ b/sh/pacbm @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # TODO: does this work with busybox awk? diff --git a/sh/pause b/sh/pause index 26a4c6c..7f79cec 100755 --- a/sh/pause +++ b/sh/pause @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH ### @ pause ### pause — the companion script of [`confirm`.](#confirm) diff --git a/sh/pegg b/sh/pegg index 901bcfc..41019ca 100755 --- a/sh/pegg +++ b/sh/pegg @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH pegg() { ### @- ### download and (pip) install a Python "egg" from a project on GitHub, diff --git a/sh/pippy b/sh/pippy index 41b3a87..280bf65 100755 --- a/sh/pippy +++ b/sh/pippy @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH pippy() { ### @- ### install Python packages using pip, diff --git a/sh/pre b/sh/pre index 2b56604..2ca1dd9 100755 --- a/sh/pre +++ b/sh/pre @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH pre() { ### @- ### dump all the `#define`s that `$CC $CPPFLAGS $CFLAGS $LDFLAGS` would result in. diff --git a/sh/psbm b/sh/psbm index f781276..b478169 100755 --- a/sh/psbm +++ b/sh/psbm @@ -1,9 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH -# YES_BB_AWK +# YES_ZSH YES_BASH YES_DASH YES_ASH YES_BB_AWK psbm() { ### @- ### display and order processes by their memory usage ascending, and their sum. diff --git a/sh/randir b/sh/randir index 327374a..eaf483c 100755 --- a/sh/randir +++ b/sh/randir @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # works with busybox. diff --git a/sh/rot13 b/sh/rot13 index 28ee1d4..84b968a 100755 --- a/sh/rot13 +++ b/sh/rot13 @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # works with busybox tr. diff --git a/sh/rs b/sh/rs index 849b06c..25efb21 100755 --- a/sh/rs +++ b/sh/rs @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# NO_BASH -# NO_DASH -# NO_ASH +# YES_ZSH NO_BASH NO_DASH NO_ASH rs() { ### @- ### record screen. does not record audio. diff --git a/sh/running b/sh/running index a6589bb..5201ecf 100755 --- a/sh/running +++ b/sh/running @@ -1,9 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH -# YES_BB_AWK +# YES_ZSH YES_BASH YES_DASH YES_ASH YES_BB_AWK # probably not compatible with busybox ps because its column 2 isn't PID. diff --git a/sh/scount b/sh/scount index 1fe7ff9..83c1a4f 100755 --- a/sh/scount +++ b/sh/scount @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH ### @ scount ### perform `sort | uniq -c | sort -n`, preferring GNU awk when available. diff --git a/sh/scramble b/sh/scramble index e513553..a613880 100755 --- a/sh/scramble +++ b/sh/scramble @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # does not work with busybox sed (yet?) diff --git a/sh/scropt b/sh/scropt index 4c9068f..b147fe2 100755 --- a/sh/scropt +++ b/sh/scropt @@ -1,8 +1,5 @@ #!/usr/bin/env bash -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH scropt() { ### @- ### run `scrot` through `optipng` and save the result to `~/play/$(now).png`. diff --git a/sh/shcom b/sh/shcom index 1413a9e..0e74e44 100755 --- a/sh/shcom +++ b/sh/shcom @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH shcom() { ### @- ### comment out text from stdin and wrap it in a markdown blockquote diff --git a/sh/similar b/sh/similar index ec80a3c..22dcaa7 100755 --- a/sh/similar +++ b/sh/similar @@ -1,9 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH -# YES_BB_AWK +# YES_ZSH YES_BASH YES_DASH YES_ASH YES_BB_AWK similar() { ### @- ### highlight adjacent lines up to the first inequivalent character. diff --git a/sh/slit b/sh/slit index 570c482..86c59b9 100755 --- a/sh/slit +++ b/sh/slit @@ -1,8 +1,5 @@ #!/usr/bin/env dash -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # works with busybox ash. diff --git a/sh/slitt b/sh/slitt index 4d9842c..abb4862 100755 --- a/sh/slitt +++ b/sh/slitt @@ -1,8 +1,5 @@ #!/usr/bin/env dash -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH # works with busybox ash. diff --git a/sh/sortip b/sh/sortip index 370989b..28708cd 100755 --- a/sh/sortip +++ b/sh/sortip @@ -1,8 +1,5 @@ #!/usr/bin/sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH sortip() { ### @- sort lines numerically by IPv4 segments. sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n "$@" diff --git a/sh/sram b/sh/sram index bb1993b..4640f8c 100755 --- a/sh/sram +++ b/sh/sram @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# YES_BASH -# NO_DASH -# NO_ASH +# YES_ZSH YES_BASH NO_DASH NO_ASH sram() { ### @- ### convert between a couple saveram formats for N64 emulators. diff --git a/sh/stfu b/sh/stfu index c235d29..5fca20c 100755 --- a/sh/stfu +++ b/sh/stfu @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH stfu() { ### @- ### invoke a command, silencing stdout and stderr *unless* the command fails. diff --git a/sh/streamcrap b/sh/streamcrap index 3d5a74c..b1898e9 100644 --- a/sh/streamcrap +++ b/sh/streamcrap @@ -1,9 +1,6 @@ #!/usr/bin/env false # awful things -# YES_ZSH -# YES_BASH -# NO_DASH -# NO_ASH +# YES_ZSH YES_BASH NO_DASH NO_ASH mpvs() { mpv --quiet \ diff --git a/sh/sum b/sh/sum index 0790c3a..2fe77ff 100755 --- a/sh/sum +++ b/sh/sum @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH sum() { ### @- ### compute the summation of its arguments without forking processes. diff --git a/sh/sv b/sh/sv index 831c7f1..94f5d5a 100755 --- a/sh/sv +++ b/sh/sv @@ -1,9 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH -# YES_BB_AWK +# YES_ZSH YES_BASH YES_DASH YES_ASH YES_BB_AWK sv() { ### @- ### collect the lastmost value of every key. diff --git a/sh/trash b/sh/trash index 1259ab5..d7994b7 100755 --- a/sh/trash +++ b/sh/trash @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH trash() { ### @- ### output a given number of bytes from `/dev/random`. diff --git a/sh/trunc b/sh/trunc index ef6a4ea..0930f2e 100755 --- a/sh/trunc +++ b/sh/trunc @@ -1,9 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH -# YES_BB_AWK +# YES_ZSH YES_BASH YES_DASH YES_ASH YES_BB_AWK trunc() { ### @- ### truncate text to fit within your terminal using the unicode character `…`. diff --git a/sh/unarchive b/sh/unarchive index 2b24ab4..288a964 100755 --- a/sh/unarchive +++ b/sh/unarchive @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# NO_BASH -# NO_DASH -# NO_ASH +# YES_ZSH NO_BASH NO_DASH NO_ASH unarchive() { ### @- extract the contents of an archive file in one of many formats. ### borrowed from [prezto.](https://github.com/sorin-ionescu/prezto) diff --git a/sh/unwrap b/sh/unwrap index 9bfcb8b..23422a2 100644 --- a/sh/unwrap +++ b/sh/unwrap @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH unwrap() { ### @- join paragraphs into one line each. awk '\''BEGIN{RS="\n\n";FS="\n"}{for(i=1;i<=NF;i++)printf "%s ",$i;print "\n"}'\' diff --git a/sh/v_domap b/sh/v_domap index 8f42081..d52fe42 100644 --- a/sh/v_domap +++ b/sh/v_domap @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH v_domap() { argc $# -eq 1 "$0" || return diff --git a/sh/v_lower b/sh/v_lower index 850200a..f5ddbf9 100644 --- a/sh/v_lower +++ b/sh/v_lower @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH v_lower() { ### @- transform the contents of a variable to lowercase. argc $# -eq 1 "$0" || return diff --git a/sh/v_upper b/sh/v_upper index 07d5b0a..0a889ab 100644 --- a/sh/v_upper +++ b/sh/v_upper @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH v_upper() { ### @- transform the contents of a variable to uppercase. argc $# -eq 1 "$0" || return diff --git a/sh/wat b/sh/wat index 8ace619..d386805 100755 --- a/sh/wat +++ b/sh/wat @@ -1,8 +1,5 @@ #!/usr/bin/env zsh -# YES_ZSH -# NO_BASH -# NO_DASH -# NO_ASH +# YES_ZSH NO_BASH NO_DASH NO_ASH # wat - a better and recursive which/whence # via: https://leahneukirchen.org/dotfiles/tools.html diff --git a/sh/wipe b/sh/wipe index a36ee5b..c414cd5 100755 --- a/sh/wipe +++ b/sh/wipe @@ -1,9 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH -# YES_BB_AWK +# YES_ZSH YES_BASH YES_DASH YES_ASH YES_BB_AWK wipe() { ### @- ### clear the screen and its scrollback, then print a high-contrast horizontal line. diff --git a/sh/witch b/sh/witch index 2608afe..f7b7d5a 100755 --- a/sh/witch +++ b/sh/witch @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# NO_ZSH -# NO_BASH -# YES_DASH -# YES_ASH +# NO_ZSH NO_BASH YES_DASH YES_ASH # this is `which` from Debian. the only changes are superficial (formatting). # this does not work as-is with zsh. diff --git a/sh/xxp b/sh/xxp index 9f0fbc5..06e082a 100755 --- a/sh/xxp +++ b/sh/xxp @@ -1,8 +1,5 @@ #!/usr/bin/env sh -# YES_ZSH -# YES_BASH -# YES_DASH -# YES_ASH +# YES_ZSH YES_BASH YES_DASH YES_ASH xxp() { ### @- ### act like `xxd -p`, but nicely formatted.