diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-26 12:13:03 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-26 12:50:25 +1200 |
commit | cde1926a3c65830bceed5e8e76cd94e81b19386c (patch) | |
tree | 5abe782d2c9567f3d7c3affa8fc077fb3d5d5e5c /bin | |
parent | Add notifications to dmp(1) (diff) | |
download | dotfiles-cde1926a3c65830bceed5e8e76cd94e81b19386c.tar.gz dotfiles-cde1926a3c65830bceed5e8e76cd94e81b19386c.zip |
Put dotfiles manuals into their own section
This probably contains a few mistakes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fgscr | 4 | ||||
-rwxr-xr-x | bin/jfc | 2 | ||||
-rwxr-xr-x | bin/jfcd | 4 | ||||
-rwxr-xr-x | bin/mktd | 2 | ||||
-rwxr-xr-x | bin/murl | 2 | ||||
-rwxr-xr-x | bin/pa | 2 | ||||
-rwxr-xr-x | bin/paz | 2 | ||||
-rwxr-xr-x | bin/rfcr | 4 | ||||
-rwxr-xr-x | bin/rnda | 4 | ||||
-rwxr-xr-x | bin/rndf | 3 | ||||
-rwxr-xr-x | bin/rndl | 4 | ||||
-rwxr-xr-x | bin/sls | 2 | ||||
-rwxr-xr-x | bin/sra | 2 | ||||
-rwxr-xr-x | bin/sta | 2 | ||||
-rwxr-xr-x | bin/td | 2 | ||||
-rwxr-xr-x | bin/tlcs | 2 | ||||
-rwxr-xr-x | bin/xgo | 2 | ||||
-rwxr-xr-x | bin/xgoc | 2 | ||||
-rwxr-xr-x | bin/xrbg | 2 |
19 files changed, 25 insertions, 24 deletions
@@ -1,9 +1,9 @@ #!/bin/sh # Find all the Git repositories in a directory and scrub them all -# Check we have gscr(1) first +# Check we have gscr(1df) first command -v gscr >/dev/null 2>&1 || exit # Look for any dir named .git in the given (default current) dir and run -# gscr(1) on it +# gscr(1df) on it find "${@:-.}" -name '*.git' -type d -exec gscr {} \; @@ -11,4 +11,4 @@ grc || exit 0 git add --all || exit # Quietly commit with a stock message and use its exit value as ours -git commit --message 'Committed by jfc(1)' --quiet +git commit --message 'Committed by jfc(1df)' --quiet @@ -1,6 +1,6 @@ #!/bin/sh -# Watch a directory for changes and commit them with jfc(1) if there are any; +# Watch a directory for changes and commit them with jfc(1d) if there are any; # requires inotifywait(1) self=jfcd @@ -18,6 +18,6 @@ inw() { # Directory to check is first and only argument; defaults to current directory cd -- "${1:-.}" || exit -# Run a while loop over inotifywait(1) calls, running jfc(1) on the working +# Run a while loop over inotifywait(1) calls, running jfc(1d) on the working # directory while inw ; do jfc ; done @@ -1,7 +1,7 @@ #!/bin/sh # Try to make a random temp directory -# Get a random seed from rnds(1); if it's empty, that's still workable +# Get a random seed from rnds(1df); if it's empty, that's still workable seed=$(rnds) # Build the intended directory name, with the last element a random integer @@ -1,6 +1,6 @@ #!/bin/sh # Format markdown and pass it to hurl to extract URLs from it. -# Pipe the output of pandoc(1) on our args into hurl(1) +# Pipe the output of pandoc(1) on our args into hurl(1df) pandoc -f markdown -t html -- "${@:-/dev/stdin}" | hurl @@ -1,4 +1,4 @@ #!/bin/sh -# Print arguments, one per line. Compare paz(1). +# Print arguments, one per line. Compare paz(1df). [ "$#" -gt 0 ] || exit 0 printf '%s\n' "$@" @@ -1,4 +1,4 @@ #!/bin/sh -# Print arguments, terminated by null chars. Compare pa(1). +# Print arguments, terminated by null chars. Compare pa(1df). [ "$#" -gt 0 ] || exit 0 printf '%s\0' "$@" @@ -8,10 +8,10 @@ if ! [ "$1" ] ; then fi rn=$1 -# Retrieve the RFC with rfcf(1) +# Retrieve the RFC with rfcf(1df) rfcf "$rn" | -# Pipe it through rfct(1) to format it as text +# Pipe it through rfct(1df) to format it as text rfct | # Either spit it directly or through a pager @@ -1,5 +1,5 @@ #!/bin/sh -# Choose a random argument using rndi(1) +# Choose a random argument using rndi(1df) # Check we have at least one argument if [ "$#" -eq 0 ] ; then @@ -7,7 +7,7 @@ if [ "$#" -eq 0 ] ; then exit 2 fi -# Get a random seed from rnds(1); if it's empty, that's still workable +# Get a random seed from rnds(1df); if it's empty, that's still workable seed=$(rnds) # Get a random integet from 1 to the number of arguments @@ -1,5 +1,6 @@ #!/bin/sh -# Choose a random file from a given directory using rnda(1); ignores dot files +# Choose a random file from a given directory using rnda(1df); ignores dot +# files # Directory is first argument; defaults to current directory dir=${1:-.} @@ -41,10 +41,10 @@ case $lc in ;; esac -# Try to get a random seed from rnds(1) for rndi(1) +# Try to get a random seed from rnds(1df) for rndi(1df) seed=$(rnds) -# Get a random line number from rndi(1) +# Get a random line number from rndi(1df) ri=$(rndi 1 "$lc" "$seed") || exit # Print the line using sed(1) @@ -16,5 +16,5 @@ if [ "$#" -eq 0 ] ; then exit 1 fi -# Otherwise, we can run slsf(1) over the ones we did collect +# Otherwise, we can run slsf(1df) over the ones we did collect slsf -- "$@" @@ -1,5 +1,5 @@ #!/bin/sh -# Run ssh(1) with an optional command on every host in sls(1) output +# Run ssh(1) with an optional command on every host in sls(1df) output # Use FD3 to keep a reference to the script's stdin for the ssh(1) calls exec 3<&0 sls | while read -r hostname ; do @@ -1,5 +1,5 @@ #!/bin/sh -# Print list of sls(1) hostnames that exit 0 when a connection is attempted +# Print list of sls(1df) hostnames that exit 0 when a connection is attempted # and the optional given command is run. Discard stdout, but preserve stderr. sls | while read -r hostname ; do # shellcheck disable=SC2029 @@ -29,4 +29,4 @@ git add -- "$file" # If there are changes to commit, commit them git diff-index --quiet HEAD || -git commit --message 'Changed by td(1)' --quiet +git commit --message 'Changed by td(1df)' --quiet @@ -83,7 +83,7 @@ for sig in EXIT HUP INT TERM ; do done td=$(mktd "$self") || exit -# Execute the command, passing stdout and stderr to tl(1) calls as appropriate +# Execute the command, passing stdout and stderr to tl(1df) calls as appropriate # via named pipes out=$td/out err=$td/err mkfifo -- "$out" "$err" || exit @@ -67,7 +67,7 @@ for url ; do ( ;; esac - # Otherwise, just pass it to br(1) + # Otherwise, just pass it to br(1df) br "$url" ) & done @@ -1,3 +1,3 @@ #!/bin/sh -# Run xgo(1) with the contents of the X clipboard +# Run xgo(1df) with the contents of the X clipboard xgo "$(xsel)" @@ -1,4 +1,4 @@ #!/bin/sh -# Apply a random background image. Requires rndf(1) and feh(1). +# Apply a random background image. Requires rndf(1df) and feh(1). bg=$(rndf "${XBACKGROUNDS:-"$HOME"/.xbackgrounds}") || exit feh --bg-scale --no-fehbg -- "$bg" |