aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.markdown1
-rw-r--r--bash/bashrc.d/bell.bash4
-rw-r--r--bin/bell3
-rw-r--r--man/man1/bell.111
4 files changed, 15 insertions, 4 deletions
diff --git a/README.markdown b/README.markdown
index 3c744728..619e8470 100644
--- a/README.markdown
+++ b/README.markdown
@@ -311,6 +311,7 @@ Installed by the `install-bin` target:
* `rndl(1)` uses `rndi(1)` to choose a random line from files
* `ax(1)` evaluates an awk expression given on the command line; this is
intended as a quick way to test how Awk would interpret a given expression.
+* `bell(1)` prints a terminal bell character
* `ca(1)` prints a count of its given arguments.
* `cf(1)` prints a count of entries in a given directory.
* `dub(1)` lists the biggest entries in a directory.
diff --git a/bash/bashrc.d/bell.bash b/bash/bashrc.d/bell.bash
deleted file mode 100644
index 7f8c8444..00000000
--- a/bash/bashrc.d/bell.bash
+++ /dev/null
@@ -1,4 +0,0 @@
-# Print a terminal bell
-bell() {
- printf '\a'
-}
diff --git a/bin/bell b/bin/bell
new file mode 100644
index 00000000..c1c2ce1c
--- /dev/null
+++ b/bin/bell
@@ -0,0 +1,3 @@
+#!/bin/sh
+# Print a terminal bell
+printf '\a'
diff --git a/man/man1/bell.1 b/man/man1/bell.1
new file mode 100644
index 00000000..65ac5050
--- /dev/null
+++ b/man/man1/bell.1
@@ -0,0 +1,11 @@
+.TH BELL 1 "August 2016" "Manual page for bell"
+.SH NAME
+.B bell
+\- ring the terminal bell
+.SH SYNOPSIS
+.B bell
+.SH DESCRIPTION
+.B bell
+prints a terminal bell (^G, ASCII 7, \\a) to stdout.
+.SH AUTHOR
+Tom Ryder <tom@sanctum.geek.nz>