From 1186fd3d1d5f6256c4541352b4f8343d5ebf79bb Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 25 Aug 2016 12:57:06 +1200 Subject: Add xyzzy(6) --- README.markdown | 1 + games/xyzzy | 6 ++++++ man/man6/xyzzy.6 | 14 ++++++++++++++ 3 files changed, 21 insertions(+) create mode 100755 games/xyzzy create mode 100644 man/man6/xyzzy.6 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 -- cgit v1.2.3