aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-15 17:27:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-15 17:27:26 +1200
commitff92ff9365f94b9da165582bab4003f35112c985 (patch)
treefa0ae89e29c06b325095748a1ea94c53fbdf2eed /bash
parentFix comment typo (diff)
downloaddotfiles-ff92ff9365f94b9da165582bab4003f35112c985.tar.gz
dotfiles-ff92ff9365f94b9da165582bab4003f35112c985.zip
Add convenience function for terminal bell
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/bell.bash9
1 files changed, 9 insertions, 0 deletions
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'
+}
+