diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-01 22:29:08 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-01 22:29:19 +1200 |
commit | 451c27d6d45621c8acfe8a6dc09cf84ee03b3f99 (patch) | |
tree | 7d55533de429840c8d6058b33a5c20aeb12eedaa | |
parent | Trim ax(1) down a bit (diff) | |
download | dotfiles-451c27d6d45621c8acfe8a6dc09cf84ee03b3f99.tar.gz dotfiles-451c27d6d45621c8acfe8a6dc09cf84ee03b3f99.zip |
Change bell() to a POSIX sh script
-rw-r--r-- | README.markdown | 1 | ||||
-rw-r--r-- | bash/bashrc.d/bell.bash | 4 | ||||
-rw-r--r-- | bin/bell | 3 | ||||
-rw-r--r-- | man/man1/bell.1 | 11 |
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> |