35 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
# set -g default-terminal "tmux-255color" # TODO: messes up backspace render, fix
 | 
						|
set -s escape-time 0
 | 
						|
 | 
						|
unbind C-b
 | 
						|
set-option -g prefix C-a
 | 
						|
bind-key C-a send-prefix
 | 
						|
set -g status-style 'bg=#111111 fg=#22cc00'
 | 
						|
set -g base-index 1
 | 
						|
 | 
						|
# vim-like movement stuff
 | 
						|
set-window-option -g mode-keys vi
 | 
						|
bind -T copy-mode-vi v send-keys -X begin-selection
 | 
						|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
 | 
						|
bind -r ^ last-window
 | 
						|
bind -r k select-pane -U
 | 
						|
bind -r j select-pane -D
 | 
						|
bind -r h select-pane -L
 | 
						|
bind -r l select-pane -R
 | 
						|
 | 
						|
# reload tmux.conf
 | 
						|
bind r source-file "~/.config/tmux/tmux.conf" \; display-message "tmux.conf reloaded"
 | 
						|
 | 
						|
# kill the current session
 | 
						|
bind-key Q rename-session zzzz-temp-kill\; switch-client -p\; kill-session -t zzzz-temp-kill
 | 
						|
bind-key W kill-session # TODO: if i can combine this into the above when only 1 session remains, do so
 | 
						|
 | 
						|
# custom find and switching for sessions using tmux-sessionizer
 | 
						|
unbind-key f
 | 
						|
bind-key f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
 | 
						|
bind-key F run-shell "tmux neww ~/.local/bin/tmux-sessionizer existing"
 | 
						|
bind-key H run-shell "tmux neww ~/.local/bin/tmux-sessionizer hub"
 | 
						|
 | 
						|
# bind -r D neww -c "#{pane_current_path}" "[[ -e TODO.md ]] && $EDITOR TODO.md || $EDITOR ~/personal/dev/todo.md"
 | 
						|
 |