feat: improve plugins management
This commit is contained in:
		
							
								
								
									
										24
									
								
								tmux.conf
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								tmux.conf
									
									
									
									
									
								
							@@ -49,6 +49,12 @@ bind    -N "emit F9 key press with prefix-F9 (because we have bound F9 to anothe
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
############### [ Plugins ] ###############
 | 
					############### [ Plugins ] ###############
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Syntax:
 | 
				
			||||||
 | 
					# set -g @plugin 'github_username/plugin_name'
 | 
				
			||||||
 | 
					# set -g @plugin 'github_username/plugin_name#branch'
 | 
				
			||||||
 | 
					# set -g @plugin 'git@github.com:user/plugin'
 | 
				
			||||||
 | 
					# set -g @plugin 'git@bitbucket.com:user/plugin'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# List of plugins to install
 | 
					# List of plugins to install
 | 
				
			||||||
set -g @plugin 'tmux-plugins/tpm'
 | 
					set -g @plugin 'tmux-plugins/tpm'
 | 
				
			||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
 | 
					set -g @plugin 'tmux-plugins/tmux-sensible'
 | 
				
			||||||
@@ -58,14 +64,10 @@ set -g @plugin 'tmux-plugins/tmux-copycat'
 | 
				
			|||||||
set -g @plugin 'erikw/tmux-powerline'
 | 
					set -g @plugin 'erikw/tmux-powerline'
 | 
				
			||||||
set -g @plugin "nordtheme/tmux"
 | 
					set -g @plugin "nordtheme/tmux"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Other examples:
 | 
					# Initialize TMUX plugin manager (keep this section at the very bottom of tmux.conf)
 | 
				
			||||||
# set -g @plugin 'github_username/plugin_name'
 | 
					%hidden PLUGINGDIR="~/.local/state/tmux/plugins"
 | 
				
			||||||
# set -g @plugin 'github_username/plugin_name#branch'
 | 
					if "test ! -d ${PLUGINGDIR}" {
 | 
				
			||||||
# set -g @plugin 'git@github.com:user/plugin'
 | 
					  run "mkdir -p $PLUGINGDIR && git clone https://github.com/tmux-plugins/tpm ${PLUGINGDIR}/tpm && ${PLUGINGDIR}/tpm/tpm && ${PLUGINGDIR}/tpm/bin/install_plugins"
 | 
				
			||||||
# set -g @plugin 'git@bitbucket.com:user/plugin'
 | 
					} {
 | 
				
			||||||
 | 
					  run  "${PLUGINGDIR}/tpm/tpm"
 | 
				
			||||||
# Automatically install tpm
 | 
					}
 | 
				
			||||||
if "test ! -d ~/.tmux/plugins/tpm" "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
 | 
					 | 
				
			||||||
run  "${HOME}/.config/tmux/plugins/tpm/tpm"
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user