|  | @ -0,0 +1,67 @@ | 
		
	
		
			
				|  |  |  |  |  | # basic {{{  | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | # reload config file (change file location to your the tmux.conf you want to use) | 
		
	
		
			
				|  |  |  |  |  | bind r source-file ~/.tmux.conf | 
		
	
		
			
				|  |  |  |  |  | # prefix | 
		
	
		
			
				|  |  |  |  |  | unbind C-b | 
		
	
		
			
				|  |  |  |  |  | set-option -g prefix C-Space | 
		
	
		
			
				|  |  |  |  |  | bind-key C-Space send-prefix | 
		
	
		
			
				|  |  |  |  |  | # Enable mouse mode (tmux 2.1 and above) | 
		
	
		
			
				|  |  |  |  |  | set -g mouse on | 
		
	
		
			
				|  |  |  |  |  | # clear rename prompt | 
		
	
		
			
				|  |  |  |  |  | bind-key , command-prompt "rename-window '%%'" | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | #  }}} #  | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | # panes{{{ | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | bind h split-window -h | 
		
	
		
			
				|  |  |  |  |  | bind v split-window -v | 
		
	
		
			
				|  |  |  |  |  | unbind '"' | 
		
	
		
			
				|  |  |  |  |  | unbind % | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | # vim-tmux-navigator{{{ | 
		
	
		
			
				|  |  |  |  |  | is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ | 
		
	
		
			
				|  |  |  |  |  |     | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" | 
		
	
		
			
				|  |  |  |  |  | bind-key -n C-Left if-shell "$is_vim" "send-keys C-Left"  "select-pane -L" | 
		
	
		
			
				|  |  |  |  |  | bind-key -n C-Down if-shell "$is_vim" "send-keys C-Down"  "select-pane -D" | 
		
	
		
			
				|  |  |  |  |  | bind-key -n C-Up if-shell "$is_vim" "send-keys C-Up"  "select-pane -U" | 
		
	
		
			
				|  |  |  |  |  | bind-key -n C-Right if-shell "$is_vim" "send-keys C-Right"  "select-pane -R" | 
		
	
		
			
				|  |  |  |  |  | bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" | 
		
	
		
			
				|  |  |  |  |  | bind-key -T copy-mode-vi C-Left select-pane -L | 
		
	
		
			
				|  |  |  |  |  | bind-key -T copy-mode-vi C-Down select-pane -D | 
		
	
		
			
				|  |  |  |  |  | bind-key -T copy-mode-vi C-Up select-pane -U | 
		
	
		
			
				|  |  |  |  |  | bind-key -T copy-mode-vi C-Right select-pane -R | 
		
	
		
			
				|  |  |  |  |  | bind-key -T copy-mode-vi C-\ select-pane -l | 
		
	
		
			
				|  |  |  |  |  | # bind-key -T copy-mode-vi M-h select-pane -L | 
		
	
		
			
				|  |  |  |  |  | # bind-key -T copy-mode-vi M-j select-pane -D | 
		
	
		
			
				|  |  |  |  |  | # bind-key -T copy-mode-vi M-k select-pane -U | 
		
	
		
			
				|  |  |  |  |  | # bind-key -T copy-mode-vi M-l select-pane -R | 
		
	
		
			
				|  |  |  |  |  | # bind-key -T copy-mode-vi M-\ select-pane -l | 
		
	
		
			
				|  |  |  |  |  | # }}} | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | # kill panes without confirmation | 
		
	
		
			
				|  |  |  |  |  | bind-key x kill-pane | 
		
	
		
			
				|  |  |  |  |  | bind-key & kill-window | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | # switch panes using Alt-arrow without prefix | 
		
	
		
			
				|  |  |  |  |  | # bind -n C-Down select-pane -D | 
		
	
		
			
				|  |  |  |  |  | # bind -n C-Up select-pane -U | 
		
	
		
			
				|  |  |  |  |  | # bind -n C-Left select-pane -L | 
		
	
		
			
				|  |  |  |  |  | # bind -n C-l select-pane -R | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | # }}} | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | #  plugins {{{ | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | set -g @plugin 'tmux-plugins/tpm' | 
		
	
		
			
				|  |  |  |  |  | set -g @plugin 'tmux-plugins/tmux-sensible' | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | set -g @plugin 'jimeh/tmux-themepack' | 
		
	
		
			
				|  |  |  |  |  | set -g @themepack 'powerline/double/blue' | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | set -g @plugin 'christoomey/vim-tmux-navigator' | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | run -b '~/.tmux/plugins/tpm/tpm' | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | #  }}} plugins #  |