aboutsummaryrefslogtreecommitdiff
path: root/tmux
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-23 10:33:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-23 10:33:27 +1200
commit5c4a1675abd27204c313018783894817e0445a5b (patch)
treec81c98eaeef9f941d8e3ab4453fdeed3c7e80102 /tmux
parent4af6360e47b5b65a708080b2cae0dac9336e9107 (diff)
downloaddotfiles-5c4a1675abd27204c313018783894817e0445a5b.tar.gz
dotfiles-5c4a1675abd27204c313018783894817e0445a5b.zip
Experiment with abbreviated prompt
And an even more strict tmux environment
Diffstat (limited to 'tmux')
-rw-r--r--tmux/tmux.conf.m425
1 files changed, 12 insertions, 13 deletions
diff --git a/tmux/tmux.conf.m4 b/tmux/tmux.conf.m4
index f7fc1e8e..624047ec 100644
--- a/tmux/tmux.conf.m4
+++ b/tmux/tmux.conf.m4
@@ -1,23 +1,22 @@
-# My tmux session is no-display land because I attach to it with all sorts of
-# terminal clients, including PuTTY, so I don't always have X forwarding
-# available and therefore it's not appropriate to set the display
+# Strip out a lot of machine and X11 dependent crap from the initial
+# environment
+set-environment -gru COLORFGBG
+set-environment -gru COLORTERM
set-environment -gru DISPLAY
+set-environment -gru SSH_CLIENT
+set-environment -gru SSH_CONNECTION
+set-environment -gru SSH_TTY
+set-environment -gru WINDOWID
-# Force the browser to be Lynx in case we inherited a non-null DISPLAY
-set-environment -g BROWSER 'lynx'
-
-# The only environment variables I want tmux to update for me are SSH_CLIENT,
-# SSH_CONNECTION, and SSH_TTY, all of which are occasionally useful
-set-option -g update-environment 'SSH_CLIENT SSH_CONNECTION SSH_TTY'
+# Otherwise, use the environment we had when we started; don't touch it during
+# a session unless I specifically ask
+set-option -g update-environment ''
# Setting this makes each new pane a non-login shell, which suits me better
set-option -g default-command "$SHELL"
-# All of my terminals are 256 colors, so use the appropriate termcap/terminfo,
-# and unset COLORFGBG and COLORTERM to stop programs getting confused
+# Expect a 256-color terminal
set-option -g default-terminal 'screen-256color'
-set-environment -gru COLORFGBG
-set-environment -gru COLORTERM
# Change the prefix to ^A rather than the default of ^B, because I'm a godless
# GNU Screen refugee, and also I like using ^B in my shell and in Vim more