aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-25 12:57:06 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-25 12:57:06 +1200
commit1186fd3d1d5f6256c4541352b4f8343d5ebf79bb (patch)
tree422f5643cb3269c48c26cf3d42014fda5255fa11
parentShow REBASE,MERGE etc in Git prompt (diff)
downloaddotfiles-1186fd3d1d5f6256c4541352b4f8343d5ebf79bb.tar.gz
dotfiles-1186fd3d1d5f6256c4541352b4f8343d5ebf79bb.zip
Add xyzzy(6)
-rw-r--r--README.markdown1
-rwxr-xr-xgames/xyzzy6
-rw-r--r--man/man6/xyzzy.614
3 files changed, 21 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 99151608..8e4c906f 100644
--- a/README.markdown
+++ b/README.markdown
@@ -450,6 +450,7 @@ There's some silly stuff in `install-games`:
* `kvlt(6)` translates input to emulate a style of typing unique to black
metal communities on the internet.
* `rndn(6)` implements an esoteric random number generation algorithm.
+* `xyzzy(6)` teleports to a marked location on the filesystem.
* `zs(6)` prepends "z" case-appropriately to every occurrence of "s" in the
text on its standard input.
diff --git a/games/xyzzy b/games/xyzzy
new file mode 100755
index 00000000..691769b9
--- /dev/null
+++ b/games/xyzzy
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ -e "$HOME"/.xyzzy ] ; then
+ printf '%s\n' 'Nothing happens.'
+ exit 1
+fi
+printf '%s\n' 'I see no cave here.' > "$HOME"/.xyzzy
diff --git a/man/man6/xyzzy.6 b/man/man6/xyzzy.6
new file mode 100644
index 00000000..0e96ccfd
--- /dev/null
+++ b/man/man6/xyzzy.6
@@ -0,0 +1,14 @@
+.TH XYZZY 6 "August 2016" "Manual page for xyzzy"
+.SH NAME
+.B xyzzy
+\- teleport between directories
+.SH USAGE
+.B xyzzy
+.SH DESCRIPTION
+Invoking
+.B xyzzy
+in a directory will tag that directory as a target for teleportation, writing
+its name to the file ~/.xyzzy. Typing it again at any given point will then
+change into that marked directory.
+.SH AUTHOR
+Tom Ryder <tom@sanctum.geek.nz>