aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-09-24 15:33:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2012-09-24 15:33:38 +1200
commitd77a1e11601f2f0296cdec30ac31ea08f0b3791c (patch)
tree83f6f2cd6ca2ed34326f62502819997c6eadb9ea /bash
parentWhoops, wrong source (diff)
downloaddotfiles-d77a1e11601f2f0296cdec30ac31ea08f0b3791c.tar.gz
dotfiles-d77a1e11601f2f0296cdec30ac31ea08f0b3791c.zip
Gonna start using alerts more sensibly
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 65face25..d3fe6bdf 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -151,8 +151,8 @@ alias gdb='gdb -q'
# I always want a unified diff.
alias diff='diff -u'
-# Function to send an alert character.
-function alert {
+# Function to send a bell character.
+function bell {
builtin echo -ne '\a'
}
@@ -181,7 +181,7 @@ function prompt {
# Turn complex coloured prompt on.
on)
PROMPT_COMMAND='history -a'
- PS1='[\u@\h:\w]$(prompt return)$(prompt vcs)$(prompt jobs)\$'
+ PS1='[\u@\h:\w]$(prompt return)$(prompt vcs)$(prompt jobs)$(bell)\$'
PS1="${color_prompt}${PS1}${color_norm} "
case "$TERM" in
screen*) PS1='\[\ek\h\e\\\]'${PS1};;