Finish initial setup of tmux-sessionizer
This commit is contained in:
		
							
								
								
									
										14
									
								
								src_files/.local/bin/.tmux-session-hydrate
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src_files/.local/bin/.tmux-session-hydrate
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
#!/bin/zsh
 | 
			
		||||
 | 
			
		||||
local omitted_dirs=(
 | 
			
		||||
    $HOME
 | 
			
		||||
    $HOMEBOX
 | 
			
		||||
    $DEVDIR
 | 
			
		||||
)
 | 
			
		||||
[[ ! ${omitted_dirs[(re)$(pwd)]} ]] &&
 | 
			
		||||
    tmux new-window -d -n cmd &&
 | 
			
		||||
    tmux rename-window $EDITOR &&
 | 
			
		||||
    $EDITOR .
 | 
			
		||||
 | 
			
		||||
clear
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user