Adjust tmux-sessionizer key-binds and filenames
This commit is contained in:
		
							
								
								
									
										21
									
								
								src_files/.local/bin/.tmux-session-hydrate-default
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								src_files/.local/bin/.tmux-session-hydrate-default
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
local omitted_dirs=(
 | 
			
		||||
    $HOME
 | 
			
		||||
    $DIR_HOME_BOX
 | 
			
		||||
    $DIR_DEV
 | 
			
		||||
    $DIR_DEV/git
 | 
			
		||||
)
 | 
			
		||||
[[ ! ${omitted_dirs[(re)$(pwd)]} ]] &&
 | 
			
		||||
    tmux new-window -d -n cmd &&
 | 
			
		||||
    tmux rename-window $EDITOR &&
 | 
			
		||||
    $EDITOR .
 | 
			
		||||
 | 
			
		||||
clear
 | 
			
		||||
 | 
			
		||||
## example template for custom override
 | 
			
		||||
# tmux new-window -d -n cmd
 | 
			
		||||
# tmux send-keys -t :cmd "echo 'in cmd'" c-M
 | 
			
		||||
# tmux new-window -d -n another
 | 
			
		||||
# tmux send-keys -t :another "echo 'in another'" c-M
 | 
			
		||||
# tmux rename-window $EDITOR
 | 
			
		||||
# $EDITOR .
 | 
			
		||||
# clear
 | 
			
		||||
		Reference in New Issue
	
	Block a user