aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2017-01-10 19:26:54 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2017-01-10 19:26:54 +0000
commita5c89a1802447217138f3dce1cb7aa0bcbd532e1 (patch)
tree2c68d95a6dedf6738bae76bec2b6b265fe56a3da
parent2c862b04af15d125b6fb82f1db1ec0a59b1ffff2 (diff)
downloadrtmux-a5c89a1802447217138f3dce1cb7aa0bcbd532e1.tar.gz
rtmux-a5c89a1802447217138f3dce1cb7aa0bcbd532e1.tar.bz2
rtmux-a5c89a1802447217138f3dce1cb7aa0bcbd532e1.zip
Change around the example .tmux.conf to show some newer features.
-rw-r--r--TODO5
-rw-r--r--example_tmux.conf22
2 files changed, 14 insertions, 13 deletions
diff --git a/TODO b/TODO
index 39512184..3f92aeb6 100644
--- a/TODO
+++ b/TODO
@@ -18,7 +18,6 @@
- format improvements:
* option to quote format (#{q:session_name})
- * formats need conditions for >0 (for #P)
* some way to pad # stuff with spaces
* formats to show if a window is linked into multiple sessions, into
multiple attached sessions, and is the active window in multiple
@@ -77,8 +76,6 @@
* panning over window (window larger than visible)
* a mode where one application can cross two panes (ie x|y, width =
COLUMNS/2 but height = ROWS * 2)
- * general key to space cells out evenly (horiz or vert) within their
- parent cell (could replace even-vert/even-horiz layouts)
* separate active panes for different clients
- terminfo bits
@@ -125,7 +122,7 @@
* customizable command aliases -- don't really want a whole alias tree
and set-alias commands like hooks/options/environ. maybe array
options, so you set command-alias[0] to foo=bar? array options would
- be useful for other stuff...
+ be useful for other stuff
* automatic pane logging
- hooks
diff --git a/example_tmux.conf b/example_tmux.conf
index f659a3c2..18f5921d 100644
--- a/example_tmux.conf
+++ b/example_tmux.conf
@@ -5,10 +5,20 @@
#
# Some tweaks to the status line
-set -g status-bg green
set -g status-right "%H:%M"
set -g window-status-current-attr "underscore"
+# If running inside tmux ($TMUX is set), then change the status line to red
+%if #{TMUX}
+set -g status-bg red
+%endif
+
+# Enable RGB colour if running in xterm(1)
+set-option -sa terminal-overrides ",xterm*:Tc"
+
+# Change the default $TERM to tmux-256color
+set -g default-terminal "tmux-256color"
+
# No bells at all
set -g bell-action none
@@ -18,9 +28,6 @@ set -g lock-after-time 1800
# Keep windows around after they exit
set -g remain-on-exit on
-# Turn on xterm-keys so that additional function keys get escape sequences
-set -g xterm-keys on
-
# Change the prefix key to C-a
set -g prefix C-a
unbind C-b
@@ -49,11 +56,8 @@ bind F12 selectw -t:21
bind m set monitor-activity
bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}'
-# Keys to hide and show a window name from the status line
-bind '-' set window-status-format '#I'\; set window-status-current-format '#I'
-bind '+' set window-status-format '#I:#W#F'\; set window-status-current-format '#I:#W#F'
-
-# Create a single default session
+# Create a single default session, because a session is created here, tmux
+# should be started with "tmux attach" rather than "tmux new"
new -d -s0 -nirssi 'exec irssi'
set -t0:0 monitor-activity on
set -t0:0 aggressive-resize on