aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-26 12:13:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-26 12:50:25 +1200
commitcde1926a3c65830bceed5e8e76cd94e81b19386c (patch)
tree5abe782d2c9567f3d7c3affa8fc077fb3d5d5e5c /bin
parentAdd notifications to dmp(1) (diff)
downloaddotfiles-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-xbin/fgscr4
-rwxr-xr-xbin/jfc2
-rwxr-xr-xbin/jfcd4
-rwxr-xr-xbin/mktd2
-rwxr-xr-xbin/murl2
-rwxr-xr-xbin/pa2
-rwxr-xr-xbin/paz2
-rwxr-xr-xbin/rfcr4
-rwxr-xr-xbin/rnda4
-rwxr-xr-xbin/rndf3
-rwxr-xr-xbin/rndl4
-rwxr-xr-xbin/sls2
-rwxr-xr-xbin/sra2
-rwxr-xr-xbin/sta2
-rwxr-xr-xbin/td2
-rwxr-xr-xbin/tlcs2
-rwxr-xr-xbin/xgo2
-rwxr-xr-xbin/xgoc2
-rwxr-xr-xbin/xrbg2
19 files changed, 25 insertions, 24 deletions
diff --git a/bin/fgscr b/bin/fgscr
index 9e80cd09..7d5ff4c5 100755
--- a/bin/fgscr
+++ b/bin/fgscr
@@ -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 {} \;
diff --git a/bin/jfc b/bin/jfc
index 1ac8d16d..33d0fe5d 100755
--- a/bin/jfc
+++ b/bin/jfc
@@ -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
diff --git a/bin/jfcd b/bin/jfcd
index b5fff5a1..8bd54e3b 100755
--- a/bin/jfcd
+++ b/bin/jfcd
@@ -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
diff --git a/bin/mktd b/bin/mktd
index afbcf4bb..75bbb4b3 100755
--- a/bin/mktd
+++ b/bin/mktd
@@ -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
diff --git a/bin/murl b/bin/murl
index 610ef6e4..95db92c9 100755
--- a/bin/murl
+++ b/bin/murl
@@ -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
diff --git a/bin/pa b/bin/pa
index 35aa6773..e03e1bb0 100755
--- a/bin/pa
+++ b/bin/pa
@@ -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' "$@"
diff --git a/bin/paz b/bin/paz
index 2cc31c6e..b1f09ca9 100755
--- a/bin/paz
+++ b/bin/paz
@@ -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' "$@"
diff --git a/bin/rfcr b/bin/rfcr
index 74488c8c..03de898d 100755
--- a/bin/rfcr
+++ b/bin/rfcr
@@ -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
diff --git a/bin/rnda b/bin/rnda
index 078e5008..5af4a3bd 100755
--- a/bin/rnda
+++ b/bin/rnda
@@ -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
diff --git a/bin/rndf b/bin/rndf
index 06e15fbe..67f9d997 100755
--- a/bin/rndf
+++ b/bin/rndf
@@ -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:-.}
diff --git a/bin/rndl b/bin/rndl
index 7d5cb6b7..7d2c3041 100755
--- a/bin/rndl
+++ b/bin/rndl
@@ -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)
diff --git a/bin/sls b/bin/sls
index d3c67cc7..770b8ec0 100755
--- a/bin/sls
+++ b/bin/sls
@@ -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 -- "$@"
diff --git a/bin/sra b/bin/sra
index 6c281918..7f072dfb 100755
--- a/bin/sra
+++ b/bin/sra
@@ -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
diff --git a/bin/sta b/bin/sta
index 396a2015..848d9740 100755
--- a/bin/sta
+++ b/bin/sta
@@ -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
diff --git a/bin/td b/bin/td
index 90df92d9..69077a8d 100755
--- a/bin/td
+++ b/bin/td
@@ -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
diff --git a/bin/tlcs b/bin/tlcs
index 30068303..4e101201 100755
--- a/bin/tlcs
+++ b/bin/tlcs
@@ -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
diff --git a/bin/xgo b/bin/xgo
index a6489855..6cbcaedb 100755
--- a/bin/xgo
+++ b/bin/xgo
@@ -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
diff --git a/bin/xgoc b/bin/xgoc
index 9e4b0929..516f7028 100755
--- a/bin/xgoc
+++ b/bin/xgoc
@@ -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)"
diff --git a/bin/xrbg b/bin/xrbg
index 554c24dd..801bf078 100755
--- a/bin/xrbg
+++ b/bin/xrbg
@@ -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"