Permalink
Browse files

Better tmux settings, remove huge comment block

  • Loading branch information...
1 parent 64221f7 commit 678a3639474555893618ae2648e968ffad112b39 Gabe Berke-Williams committed Oct 12, 2012
Showing with 13 additions and 74 deletions.
  1. +13 −74 tmux.conf
View
@@ -1,7 +1,7 @@
-# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
+# Make pbcopy/pbpaste and Vim's * register work.
set-option -g default-command "~/bin/reattach-to-user-namespace -l zsh"
-# To copy/past:
+# To copy/paste:
# <PREFIX>-[ to enter copy mode
# <Space> to select text
# <Enter> to copy and exit copy mode
@@ -10,10 +10,18 @@ set-option -g default-command "~/bin/reattach-to-user-namespace -l zsh"
# act like vim
set-option status-keys vi
setw -g mode-keys vi
+
# look good
set -g default-terminal "screen-256color"
-# Fit everything into the right status line
-set -g status-right-length 50
+
+# Ensure the right status line isn't cut off.
+# set -g status-right-length 50
+
+# speed up
+set -sg escape-time 1
+
+# Start counting panes etc from 1 (0 is too far away).
+set -g base-index 1
# use C-a as prefix (like GNU screen)
unbind C-b
@@ -27,22 +35,14 @@ bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
-# # kill
-# unbind k
-# bind k confirm-before "kill-window"
-
# reload config
unbind r
bind r source-file ~/.tmux.conf
-# Open a new pane on the right, 25% width, and switch back to original pane
+# Open a new pane on the right, 25% width
unbind C-w
bind C-w split-window -h -p 25
-# cycle through panes
-unbind ^A
-bind ^A select-pane -t :.+
-
unbind Right
bind Right resize-pane -R 8
unbind Left
@@ -67,64 +67,3 @@ set -g status-interval 1
# status name
set -g status-left '#[fg=magenta]#S#[default]'
set -g status-right '#[fg=magenta]#(~/.dotfiles/scripts/battery-life) (#(~/.dotfiles/scripts/battery-time))#[default] #[fg=yellow]%Y-%m-%d %H:%M#[default] '
-
-# I keep getting this message for split-window. Not sure why.
-# /Users/gabe/.tmux.conf: 68: can't establish current session
-# # Take up 33% of the screen
-# split-window -h -p 33
-# split-window -v -p 33
-
-# Default bindings:
-# C-b Send the prefix key (C-b) through to the application.
-# C-o Rotate the panes in the current window forwards.
-# C-z Suspend the tmux client.
-# ! Break the current pane out of the window.
-# " Split the current pane into two, top and bottom.
-# # List all paste buffers.
-# $ Rename the current session.
-# % Split the current pane into two, left and right.
-# & Kill the current window.
-# ' Prompt for a window index to select.
-# , Rename the current window.
-# - Delete the most recently copied buffer of text.
-# . Prompt for an index to move the current window.
-# 0 to 9 Select windows 0 to 9.
-# : Enter the tmux command prompt.
-# ; Move to the previously active pane.
-# = Choose which buffer to paste interactively from a list.
-# ? List all key bindings.
-# D Choose a client to detach.
-# [ Enter copy mode to copy text or view the history.
-# ] Paste the most recently copied buffer of text.
-# c Create a new window.
-# d Detach the current client.
-# f Prompt to search for text in open windows.
-# i Display some information about the current window.
-# l Move to the previously selected window.
-# n Change to the next window.
-# o Select the next pane in the current window.
-# p Change to the previous window.
-# q Briefly display pane indexes.
-# r Force redraw of the attached client.
-# s Select a new session for the attached client interactively.
-# L Switch the attached client back to the last session.
-# t Show the time.
-# w Choose the current window interactively.
-# x Kill the current pane.
-# { Swap the current pane with the previous pane.
-# } Swap the current pane with the next pane.
-# ~ Show previous messages from tmux, if any.
-# Page Up Enter copy mode and scroll one page up.
-# Up, Down
-# Left, Right
-# Change to the pane above, below, to the left, or to the right of the current pane.
-# M-1 to M-5 Arrange panes in one of the five preset layouts: even-horizontal, even-vertical, main-horizontal, main-vertical, or tiled.
-# M-n Move to the next window with a bell or activity marker.
-# M-o Rotate the panes in the current window backwards.
-# M-p Move to the previous window with a bell or activity marker.
-# C-Up, C-Down
-# C-Left, C-Right
-# Resize the current pane in steps of one cell.
-# M-Up, M-Down
-# M-Left, M-Right
-# Resize the current pane in steps of five cells.

0 comments on commit 678a363

Please sign in to comment.