diff options
-rw-r--r-- | README.markdown | 1 | ||||
-rwxr-xr-x | games/xyzzy | 6 | ||||
-rw-r--r-- | man/man6/xyzzy.6 | 14 |
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> |