Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Gonna start using alerts more sensibly

  • Loading branch information...
commit 6eec140c98245d4002a3dcf713764cff73d0bbca 1 parent 079962f
@tejr authored
Showing with 10 additions and 5 deletions.
  1. +3 −3 bash/bashrc
  2. +7 −2 tmux/tmux.conf
6 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.
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};;
9 tmux/tmux.conf
@@ -51,6 +51,9 @@ set-window-option -g mode-keys vi
# No special xterm stuff, error-prone in VTE
set -ga terminal-overrides ',*:XT@'
+# Formatting
+set-window-option -g window-status-format "#I:#W#F"
# Colors
set-option -g default-terminal 'screen-256color'
set-option -g message-bg colour18
@@ -62,7 +65,9 @@ set-option -g status-fg colour248
set-window-option -g mode-bg colour18
set-window-option -g mode-fg colour231
set-window-option -g window-status-attr none
+set-window-option -g window-status-fg colour16
+set-window-option -g window-status-current-attr none
+set-window-option -g window-status-current-fg colour231
set-window-option -g window-status-bell-attr none
-set-window-option -g window-status-current-format "#[fg=colour231]#I:#W#F"
-set-window-option -g window-status-format "#[fg=colour16]#I:#W#F"
+set-window-option -g window-status-bell-fg colour9

0 comments on commit 6eec140

Please sign in to comment.
Something went wrong with that request. Please try again.