From d77a1e11601f2f0296cdec30ac31ea08f0b3791c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 24 Sep 2012 15:33:38 +1200 Subject: Gonna start using alerts more sensibly --- bash/bashrc | 6 +++--- tmux/tmux.conf | 9 +++++++-- 2 files changed, 10 insertions(+), 5 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};; diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 1195d322..b8ebb5b2 100644 --- a/tmux/tmux.conf +++ b/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 -- cgit v1.2.3