Merge branch 'master' into kusanagi
This commit is contained in:
		
						commit
						7c67fef404
					
				
					 4 changed files with 24 additions and 3 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
.directory
 | 
			
		||||
							
								
								
									
										20
									
								
								1-parallel-template
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								1-parallel-template
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
MAX_JOBS=8
 | 
			
		||||
function holdForWork() {
 | 
			
		||||
	while [[ $MAX_JOBS -le $(jobs -l | wc -l) ]]; do sleep 0.1; done
 | 
			
		||||
}
 | 
			
		||||
function holdForFinish() {
 | 
			
		||||
	while [[ $(jobs -lr | wc -l) -gt 0 ]]; do sleep 0.1; done
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
for TASK in TASK_LIST; do
 | 
			
		||||
	holdForWork
 | 
			
		||||
	(
 | 
			
		||||
		echo ""
 | 
			
		||||
	) &>/dev/null &
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
holdForFinish
 | 
			
		||||
echo "    ...done!"
 | 
			
		||||
| 
						 | 
				
			
			@ -103,7 +103,7 @@ treep() { # short for tree pager
 | 
			
		|||
 | 
			
		||||
ts() {
 | 
			
		||||
	( # so we don't get stuck in that folder
 | 
			
		||||
	cd "$HOME/Dropbox/Grad School/Writing/0000-dissertation"
 | 
			
		||||
	cd "$HOME/Documents/GradSchool/Writing/0000-dissertation"
 | 
			
		||||
	grep -R "$1" *
 | 
			
		||||
	)
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -72,7 +72,7 @@ if [ -d "$HOME/.local" ] ; then
 | 
			
		|||
fi
 | 
			
		||||
 | 
			
		||||
# Load information that is in any extra random installed directory.
 | 
			
		||||
__LOAD_DIRS=(/opt/mate /opt/makemkv /opt/ffmpeg $HOME/.gem/ruby/2.5.0 /opt/icestorm)
 | 
			
		||||
__LOAD_DIRS=(/opt/fpga /opt/makemkv /opt/icestorm)
 | 
			
		||||
for DIR_EXPAND in ${__LOAD_DIRS[*]}; do
 | 
			
		||||
	loadDirectory $DIR_EXPAND
 | 
			
		||||
done
 | 
			
		||||
| 
						 | 
				
			
			@ -109,4 +109,4 @@ unset DIR_EXPAND __LOAD_DIRS
 | 
			
		|||
#		#echo $__VAR_PTR "=" $__VAR_VAL
 | 
			
		||||
#	fi
 | 
			
		||||
#done
 | 
			
		||||
#unset __VAR_PTR_LST __VAR_PTR __VAR_VAL
 | 
			
		||||
#unset __VAR_PTR_LST __VAR_PTR __VAR_VAL
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue