Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Merged
merged 5 commits into from about 2 years ago

2 participants

Will Mernagh John Norman
Will Mernagh
Collaborator
wm commented March 26, 2012

Add's some tmux customization

  • Adds some more bindings for tmux
  • adds tmuxinator config
  • sets TMPDIR to /tmp (screw you Mac OSX security measures)
John Norman
Owner
jgn commented March 26, 2012

:octocat:

I wonder if pull requests for dotfiles should come from branches instead of forks? (To make it easier to switch to the branch? -- which is somewhat problematic for dotfiles.)

Will Mernagh
Collaborator
wm commented March 27, 2012

Yes, I will push branches to Iora from now on.

Will Mernagh wm merged commit 75d41cc into from March 27, 2012
Will Mernagh wm closed this March 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
49  tmux.conf
... ...
@@ -1,6 +1,7 @@
1 1
 # act like vim
2 2
 set-option status-keys vi
3 3
 setw -g mode-keys vi
  4
+
4 5
 # enable UTF8 for this session (set-option)
5 6
 # set-option utf8 on
6 7
 
@@ -12,6 +13,12 @@ bind l select-pane -R
12 13
 bind-key -r C-h select-window -t :-
13 14
 bind-key -r C-l select-window -t :+
14 15
 
  16
+# use vim-ish bindings for resizing panes
  17
+bind -r H resize-pane -L 5
  18
+bind -r J resize-pane -D 5
  19
+bind -r K resize-pane -U 5
  20
+bind -r L resize-pane -R 5
  21
+
15 22
 # Default bindings:
16 23
 # C-b         Send the prefix key (C-b) through to the application.
17 24
 # C-o         Rotate the panes in the current window forwards.
@@ -71,6 +78,9 @@ bind-key -r C-l select-window -t :+
71 78
 unbind C-b
72 79
 set -g prefix C-a
73 80
 
  81
+# to pass C-a through to program running in tmux just do it twice
  82
+bind C-a send-prefix
  83
+
74 84
 # look good
75 85
 set -g default-terminal "screen-256color"
76 86
 
@@ -78,5 +88,42 @@ set -g default-terminal "screen-256color"
78 88
 set -g status-bg black
79 89
 set -g status-fg white
80 90
 set -g status-interval 1
81  
-set -g status-left ' '
  91
+set -g status-left-length 40
82 92
 set -g status-right '#[fg=yellow]%Y-%m-%d %H:%M#[default] '
  93
+set -g status-left "#[fg=green]#S #[fg=yellow]#I #[fg=cyan]#P"
  94
+set -g status-utf8 on
  95
+set -g status-justify centre
  96
+setw -g monitor-activity on
  97
+set -g visual-activity on
  98
+
  99
+# style the active window
  100
+setw -g window-status-current-fg yellow
  101
+setw -g window-status-current-bg black
  102
+setw -g window-status-current-attr bright
  103
+
  104
+# Set the window and pane index to 1 instead of 0
  105
+set -g base-index 1
  106
+setw -g pane-base-index 1
  107
+
  108
+# Set the pane divider colors
  109
+set -g pane-border-fg green
  110
+set -g pane-border-bg black
  111
+set -g pane-active-border-fg white
  112
+set -g pane-active-border-bg yellow
  113
+
  114
+# reload this file
  115
+bind r source-file ~/.tmux.conf \; display "Reloaded!"
  116
+
  117
+# split panes
  118
+bind | split-window -h
  119
+bind - split-window -v
  120
+
  121
+# copy and paste (command mode)
  122
+unbind [
  123
+bind Escape copy-mode
  124
+bind p paste-buffer
  125
+bind -t vi-copy 'v' begin-selection
  126
+bind -t vi-copy 'y' copy-selection
  127
+bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
  128
+bind C-v run "tmux set-buffer - $(reattach-to-user-namespace pbpaste); tmux paste-buffer"
  129
+
2  zsh/tmuxinator.zsh
... ...
@@ -0,0 +1,2 @@
  1
+export EDITOR=vim
  2
+[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] && source $HOME/.tmuxinator/scripts/tmuxinator
2  zshrc
... ...
@@ -1,5 +1,6 @@
1 1
 # We're in tmux, GO GO GO
2 2
 
  3
+export TMPDIR=/tmp/
3 4
 BASE="$HOME/.dotfiles/zsh/"
4 5
 
5 6
 source $BASE'key_bindings.zsh'
@@ -23,6 +24,7 @@ source $BASE'ruby.zsh'
23 24
 source $BASE'rails.zsh'
24 25
 source $BASE'rvm.zsh'
25 26
 source $BASE'hitch.zsh'
  27
+source $BASE'tmuxinator.zsh'
26 28
 
27 29
 export PATH
28 30
 trim_path
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.