feat: Improve settings
This commit is contained in:
		
							
								
								
									
										42
									
								
								tmux.conf
									
									
									
									
									
								
							
							
						
						
									
										42
									
								
								tmux.conf
									
									
									
									
									
								
							@@ -1,7 +1,20 @@
 | 
			
		||||
############### [Personal settings] ###############
 | 
			
		||||
 | 
			
		||||
# Mouse
 | 
			
		||||
set -g mouse on
 | 
			
		||||
# Windows and panes numbering
 | 
			
		||||
set -g base-index 1
 | 
			
		||||
setw -g pane-base-index 1
 | 
			
		||||
set -g renumber-windows on
 | 
			
		||||
 | 
			
		||||
# Terminal colors
 | 
			
		||||
 | 
			
		||||
# Force terminal for 256 colors support
 | 
			
		||||
# set -g default-terminal "screen-256color"
 | 
			
		||||
set -g default-terminal "tmux-256color"
 | 
			
		||||
# You can find the definition file here : https://github.com/tmux/tmux/files/1725937/tmux-256color.terminfo.txt
 | 
			
		||||
# and install it with this command : tic -x tmux-256color.terminfo.txt
 | 
			
		||||
# Alternative if tmux-256color is not available
 | 
			
		||||
set -as terminal-overrides ",*256col*:RGB"
 | 
			
		||||
set -as terminal-overrides ",*256col*:Tc"
 | 
			
		||||
 | 
			
		||||
# Display titles
 | 
			
		||||
set -g set-titles on
 | 
			
		||||
@@ -16,16 +29,7 @@ set -g set-titles-string "#T"
 | 
			
		||||
# bind | split-window -h
 | 
			
		||||
# bind _ split-window -v
 | 
			
		||||
 | 
			
		||||
# Force terminal for 256 colors support
 | 
			
		||||
# set -g default-terminal "screen-256color"
 | 
			
		||||
set -g default-terminal "tmux-256color"
 | 
			
		||||
# You can find the definition file here : https://github.com/tmux/tmux/files/1725937/tmux-256color.terminfo.txt
 | 
			
		||||
# and install it with this command : tic -x tmux-256color.terminfo.txt
 | 
			
		||||
# Alternative if tmux-256color is not available
 | 
			
		||||
set -as terminal-overrides ",*256col*:RGB"
 | 
			
		||||
set -as terminal-overrides ",*256col*:Tc"
 | 
			
		||||
 | 
			
		||||
# Keybindings
 | 
			
		||||
############### [ Keybindings ] ###############
 | 
			
		||||
 | 
			
		||||
unbind %
 | 
			
		||||
 | 
			
		||||
@@ -41,11 +45,15 @@ bind -n S-right swap-window -t +1
 | 
			
		||||
 | 
			
		||||
bind z resize-pane -Z
 | 
			
		||||
 | 
			
		||||
# bind -n F8 new-window qbco
 | 
			
		||||
# bind -n F8 new-window bash -c 'source ~/Repositories/Gitlab/bash-tools/libs/kgb.bash && source ~/Repositories/Gitlab/bash-tools/libs/misc.bash && qbco'
 | 
			
		||||
bind -n -N "Select cluster with fzf, authenticate with qbco then launch k9s in a new window"   F9 new-window qb9s
 | 
			
		||||
bind -n -N "Select cluster with fzf, authenticate with qbco then launch k9s in a split window" S-F9 split-window qb9s
 | 
			
		||||
bind    -N "emit F9 key press with prefix-F9 (because we have bound F9 to another shortcut)"   F9 send-keys F9
 | 
			
		||||
# # bind -n F8 new-window qbco
 | 
			
		||||
# # bind -n F8 new-window bash -c 'source ~/Repositories/Gitlab/bash-tools/libs/kgb.bash && source ~/Repositories/Gitlab/bash-tools/libs/misc.bash && qbco'
 | 
			
		||||
# bind -n -N "Select cluster with fzf, authenticate with qbco then launch k9s in a new window"   F9 new-window qb9s
 | 
			
		||||
# bind -n -N "Select cluster with fzf, authenticate with qbco then launch k9s in a split window" S-F9 split-window qb9s
 | 
			
		||||
# bind    -N "emit F9 key press with prefix-F9 (because we have bound F9 to another shortcut)"   F9 send-keys F9
 | 
			
		||||
 | 
			
		||||
############### [ Mouse support ] ###############
 | 
			
		||||
 | 
			
		||||
set -g mouse on
 | 
			
		||||
 | 
			
		||||
############### [ Plugins ] ###############
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user