Finish initial setup of tmux-sessionizer
This commit is contained in:
		
							
								
								
									
										8
									
								
								run
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								run
									
									
									
									
									
								
							@@ -1,7 +1,7 @@
 | 
			
		||||
#!/bin/zsh
 | 
			
		||||
 | 
			
		||||
single_script_filter=""
 | 
			
		||||
dry="0"
 | 
			
		||||
local single_script_filter=""
 | 
			
		||||
local dry="0"
 | 
			
		||||
 | 
			
		||||
execute() {
 | 
			
		||||
    log "execute $@"
 | 
			
		||||
@@ -17,10 +17,10 @@ while [[ $# > 0 ]]; do
 | 
			
		||||
    shift
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
script_dir=$(cd $(dirname "${ZSH_SOURCE[0]}") &> /dev/null && pwd)
 | 
			
		||||
local script_dir=$(cd $(dirname "${ZSH_SOURCE[0]}") &> /dev/null && pwd)
 | 
			
		||||
log "run // script_dir: $script_dir -- args: $single_script_filter"
 | 
			
		||||
cd $script_dir
 | 
			
		||||
scripts=(`find ./runs -maxdepth 1 -mindepth 1 -type f`)
 | 
			
		||||
local scripts=(`find ./runs -maxdepth 1 -mindepth 1 -type f`)
 | 
			
		||||
for script in $scripts; do
 | 
			
		||||
    if [[ -x $script ]]; then
 | 
			
		||||
        if echo "$script" | grep -qv "$single_script_filter"; then
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user