22 lines
		
	
	
		
			449 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			449 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
local omitted_dirs=(
 | 
						|
    $HOME
 | 
						|
    $HOMEBOX
 | 
						|
    $DEVDIR
 | 
						|
    $DEVDIR/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
 |