aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README2
-rw-r--r--tmux/tmux.conf56
2 files changed, 58 insertions, 0 deletions
diff --git a/README b/README
index 4b3d6a49..01607a49 100644
--- a/README
+++ b/README
@@ -13,9 +13,11 @@ rm -fr .vimrc
rm -fr .gvimrc
rm -fr .gitconfig
rm -fr .screenrc
+rm -fr .tmux.conf
ln -s .dotfiles/vim .vim
ln -s .dotfiles/vim/vimrc .vimrc
ln -s .dotfiles/vim/gvimrc .gvimrc
ln -s .dotfiles/git/gitconfig .gitconfig
ln -s .dotfiles/screen/screenrc .screenrc
+ln -s .dotfiles/tmux/tmux.conf .tmux.conf
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
new file mode 100644
index 00000000..de0b7443
--- /dev/null
+++ b/tmux/tmux.conf
@@ -0,0 +1,56 @@
+# Set the prefix to C-A.
+unbind C-b
+set -g prefix C-a
+bind a send-prefix
+
+# GNU Screen rebindings.
+unbind '"'
+unbind A
+unbind C-A
+unbind C-C
+unbind C-D
+unbind C-L
+unbind C-N
+unbind C-P
+unbind K
+unbind S
+unbind Tab
+unbind k
+unbind n
+unbind p
+unbind s
+bind '"' choose-window
+bind A command-prompt "rename-window %%"
+bind C-A last-window
+bind C-C new-window
+bind C-D detach
+bind C-L refresh-client
+bind C-N next-window
+bind C-P previous-window
+bind K kill-window
+bind S split-window -h
+bind Tab select-pane -t :.+
+bind \ confirm-before "kill-server"
+bind c new-window
+bind k kill-window
+bind n next-window
+bind p previous-window
+bind s split-window -v
+
+# Terminal settings.
+set -g default-terminal "screen-256color"
+
+# Spiffy colours.
+set -g status-fg colour16
+set -g status-bg colour237
+set -g window-status-current-fg colour231
+set -g window-status-current-bg colour237
+set -g pane-border-bg colour237
+set -g pane-border-fg colour237
+set -g pane-active-border-bg colour237
+set -g pane-active-border-fg colour237
+
+# Use two-space separators, and forget the status indicator.
+set-window-option -g window-status-format "#I #W "
+set-window-option -g window-status-current-format "#I #W "
+