Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'master' of github.com:Vladimiroff/dotfiles

  • Loading branch information...
commit ed4fddc0b139977360876143228af4a2f0405fb0 2 parents 08f9440 + 7582e43
Kiril Vladimiroff authored June 11, 2012
3  bash/aliases
... ...
@@ -1,8 +1,5 @@
1 1
 #!/bin/bash
2 2
 
3  
-# I don't always run tmux
4  
-# But when I do, I want it in 256 colors and with UTF-8 support
5  
-[ -n "$TMUX" ] && export TERM=screen-256color
6 3
 alias tmux='tmux -u -2'
7 4
 
8 5
 alias t='tmux'
7  bash/config
... ...
@@ -1,5 +1,12 @@
1 1
 #!/bin/bash
2 2
 
  3
+if [[ -n "$TMUX" ]]; then
  4
+    export TERM=screen-256color
  5
+else
  6
+    tmux new-session -s "main_`date +%s`"
  7
+fi
  8
+
  9
+
3 10
 # sudo bash-comletion
4 11
 complete -cf please
5 12
 
23  tmux.conf
@@ -12,6 +12,11 @@ set -g pane-border-bg black
12 12
 set -g pane-active-border-fg black
13 13
 set -g pane-active-border-bg cyan
14 14
 
  15
+setw -g mode-mouse on
  16
+set -g mouse-select-pane on
  17
+set -g mouse-resize-pane on
  18
+set -g mouse-select-window on
  19
+
15 20
 set-window-option -g window-status-current-bg red
16 21
 set-window-option -g mode-keys vi
17 22
 set-window-option -g utf8 on
@@ -35,9 +40,19 @@ bind -r J resize-pane -D 5
35 40
 bind -r K resize-pane -U 5
36 41
 bind -r L resize-pane -R 5
37 42
 
38  
-setw -g mode-mouse on
39  
-set -g mouse-select-pane on
40  
-set -g mouse-resize-pane on
41  
-set -g mouse-select-window on
  43
+bind -r C-h select-window -t :-
  44
+bind -r C-l select-window -t :+
42 45
 
  46
+unbind p
  47
+bind p paste-buffer
  48
+bind -t vi-copy 'v' begin-selection
  49
+bind -t vi-copy 'y' copy-selection
  50
+
  51
+unbind Up
  52
+unbind Down
  53
+bind Up new-window -d -n maximized \; swap-pane -s maximized.1 \; select-window -t maximized
  54
+bind Down last-window \; swap-pane -s maximized.1 \; kill-window -t maximized
  55
+
  56
+bind P pipe-pane -o "cat >> ~/#W.log" \; display "Toggle logging to ~/#W.log"
43 57
 bind r source-file ~/.tmux.conf \; display "Configuration Reloaded!"
  58
+

0 notes on commit ed4fddc

Please sign in to comment.
Something went wrong with that request. Please try again.