Browse files

Added settings from tmux book and copy paste

  • Loading branch information...
1 parent 237f47b commit d034c8723e14f09fe00d04f1852baefc328d7290 @Hates committed Apr 23, 2012
Showing with 56 additions and 8 deletions.
  1. +56 −8 tmux.conf
@@ -1,16 +1,64 @@
-set -g prefix C-a
+# Based on the tmux.conf from PragPro's Tmux book.
-setw -g mode-mouse on
-set -g mouse-select-pane on
-set -g mouse-resize-pane on
-set -g mouse-select-window on
+# Setting the prefix from C-b to C-a
+set -g prefix C-a
+unbind C-b
-bind -r H resize-pane -L 5
-bind -r J resize-pane -D 5
-bind -r K resize-pane -U 5
+#setting the delay between prefix and command
+set -sg escape-time 1
+# Ensure that we can send Ctrl-A to other apps
+bind C-a send-prefix
+# Set the base index for windows to 1 instead of 0
+set -g base-index 1
+# Set the base index for panes to 1 instead of 0
+setw -g pane-base-index 1
+# Reload the file with Prefix r
+bind r source-file ~/.tmux.conf \; display "Reloaded!"
+# splitting panes
+bind | split-window -h
+bind - split-window -v
+# moving between panes
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R
+# Quick pane selection
+bind -r C-h select-window -t :-
+bind -r C-l select-window -t :+
+# Pane resizing
+bind -r H resize-pane -L 5
+bind -r J resize-pane -D 5
+bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
+# mouse support - set to on if you want to use the mouse
+setw -g mode-mouse off
+set -g mouse-select-pane off
+set -g mouse-resize-pane off
+set -g mouse-select-window off
+# Set the default terminal mode to 256color mode
set -g default-terminal "screen-256color"
+# enable activity alerts
+setw -g monitor-activity on
+set -g visual-activity on
+# enable vi keys.
+setw -g mode-keys vi
+# Enable pbcopy/pbpaste
+set-option -g default-command "reattach-to-user-namespace -l zsh"
+# Powerline styled status bar
set -g status-left-length 52
set -g status-right-length 451
set -g status-fg white

0 comments on commit d034c87

Please sign in to comment.