From ff92ff9365f94b9da165582bab4003f35112c985 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 15 Sep 2013 17:27:26 +1200 Subject: Add convenience function for terminal bell --- .gitignore | 1 + bash/bashrc.d/bell.bash | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 bash/bashrc.d/bell.bash diff --git a/.gitignore b/.gitignore index 4db0ecd6..4dc2d135 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ bash/bashrc.d/* !bash/bashrc.d/aliases.bash +!bash/bashrc.d/bell.bash !bash/bashrc.d/cd.bash !bash/bashrc.d/completion.bash !bash/bashrc.d/ed.bash diff --git a/bash/bashrc.d/bell.bash b/bash/bashrc.d/bell.bash new file mode 100644 index 00000000..29a3fb95 --- /dev/null +++ b/bash/bashrc.d/bell.bash @@ -0,0 +1,9 @@ +# Print a terminal bell; good for the end of long commands to prompt me into +# looking at the window: +# +# $ long-boring-command ; bell +# +bell() { + printf %s $'\a' +} + -- cgit v1.2.3